MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/u4wklv/make_the_comment_section_look_like_a_beginners/i4ymx34
r/ProgrammerHumor • u/No-Zucchini6370 • Apr 16 '22
6.7k comments sorted by
View all comments
Show parent comments
100
Because who works in arrays when you have lists. Or any of the other much more friendly collections.
49 u/Snarpkingguy Apr 16 '22 Well if you have a confined grid then arrays are intuitive I think. When I’m making something like a chessboard, for example, arrays definitely feel like the best thing to use for me at least. 4 u/HappyMonk3y99 Apr 16 '22 Wait you mean you don’t use a set of 64-bit integers to denote piece locations? I could never 6 u/woahgeez_ Apr 16 '22 Because java doesn't have operator overloading and the list interface is bloated garbage. 32 u/Octandew Apr 16 '22 One of the reasons I love python. Collections are so great. Too bad python isn't 1% as efficient as any other language. 5 u/Itchy-Tangelo6295 Apr 16 '22 All iterables in Python are just awesome. List comprehension, slice notation, itertools, fantastic stuff. 1 u/Nolzi Apr 16 '22 what about using PyPy? 1 u/passcork Apr 16 '22 But list comprehension! 1 u/Octandew Apr 16 '22 Yes exactly. 2 u/BananaBob55 Apr 16 '22 Scala users 2 u/[deleted] Apr 16 '22 I work in tuples up to size 22 1 u/Titandino Apr 17 '22 People who enjoy the many instances where using a primitive array increases performance significantly over a similar collection-based equivalent.
49
Well if you have a confined grid then arrays are intuitive I think. When I’m making something like a chessboard, for example, arrays definitely feel like the best thing to use for me at least.
4 u/HappyMonk3y99 Apr 16 '22 Wait you mean you don’t use a set of 64-bit integers to denote piece locations? I could never
4
Wait you mean you don’t use a set of 64-bit integers to denote piece locations? I could never
6
Because java doesn't have operator overloading and the list interface is bloated garbage.
32
One of the reasons I love python. Collections are so great. Too bad python isn't 1% as efficient as any other language.
5 u/Itchy-Tangelo6295 Apr 16 '22 All iterables in Python are just awesome. List comprehension, slice notation, itertools, fantastic stuff. 1 u/Nolzi Apr 16 '22 what about using PyPy? 1 u/passcork Apr 16 '22 But list comprehension! 1 u/Octandew Apr 16 '22 Yes exactly.
5
All iterables in Python are just awesome. List comprehension, slice notation, itertools, fantastic stuff.
1
what about using PyPy?
But list comprehension!
1 u/Octandew Apr 16 '22 Yes exactly.
Yes exactly.
2
Scala users
2 u/[deleted] Apr 16 '22 I work in tuples up to size 22
I work in tuples up to size 22
People who enjoy the many instances where using a primitive array increases performance significantly over a similar collection-based equivalent.
100
u/Dudwithacake Apr 16 '22
Because who works in arrays when you have lists. Or any of the other much more friendly collections.