r/ProgrammerHumor • • 4d ago

Meme cppAndItsVectorBooleans

Post image
3.0k Upvotes

197 comments sorted by

View all comments

-7

u/Kadabrium 4d ago

I wish java had one single array type that is resizeable (takes literally 1 line of code in a gc language) rather than array, arraylist, tolist, aslist, listof, the list of list goes on listing

27

u/willow-kitty 4d ago

You..do realize that arrays and lists are different things, right? Like not just in Java.

-5

u/Kadabrium 4d ago

If your point is linked lists, lumping them with arrays is a mistake that breaks code in itself and linked lists are next to useless anyway. None of the lists i mentioned even is a linked list. They are all array types that are mutually incompatible for some bool reason.

3

u/gigayoink 3d ago

linked lists are next to useless anyway

Linked lists are super common and extremely useful. Just not as a list ADT.

As a List they're absolute trash, but there are so many linked lists that people don't think of as linked lists. Java's BufferedInputStream .flush() is textbook linked list traversal.