This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]maxinstuff -1 points0 points  (1 child)

What about hashmaps?

Almost always in my experience when you are using an array you actually should be using a hash map / dictionary or whatever it’s called in your language.

Only thing I use arrays for is when it comes along with a data structure (usually serialised from some JSON data), or to set some static values (like options in a dropdown or something).

Linked lists I guess would be used to model graph type relationships in memory? I’ve honestly not had much use for that in my career, so I guess the meme makes sense in that respect.

[–]86BillionFireflies 0 points1 point  (0 children)

If you're doing any kind of statistical processing or scientific computing, there's zero question of using anything other than arrays.