4 ms·
JS and Python can't decide what's best for your problem: an array or a linked list. It's the programmer who decides these things. I'm currently working on a pro
by leaveyou 9y ago
JS and Python can't decide what's best for your problem: an array or a linked list. It's the programmer who decides these things. I'm currently working on a project started by people who apparently were completely unaware (among other intellectual obscenities) that it's not OK to return a long list of integers by concatenating them into a long string only to split and parse them again later when some subset of this list was needed. Recently, due to increased traffic, the web service kept crashing.. with 64GB of RAM. Some of these people are probably on this forum, trying to justify why "you can be productive" without knowing wtf you are actually doing.
- always_good 9y agoTo be fair, languages like Ruby and Javascript only have one sequence container in their standard lib and the difference just doesn't come up for most people most of the time. Just like how most day-to-day data for most people probably fits in array with a capacity <100. And the most common day-to-day operations are array[0] and array.append(). And even when it's thrown in your face like listOf() vs arrayOf() in Kotlin or [] vs '() in Clojure, one is the conventional default that you use most of the time anyways. That said, someone who doesn't know what a linked list may also be lacking experience with many other things that you would expect from a candidate, but it's no mystery how someone can go far without really encountering one.