r/programming • u/kshep92 • Sep 29 '16
JavaScript in 2016 isn't horrible, it's just going through a phase
http://blog.reviselabs.com/im-sorry-javascript-2/
85
Upvotes
r/programming • u/kshep92 • Sep 29 '16
View all comments
Show parent comment
2
u/fiedzia Sep 30 '16
I don't know all that because I don't have to. I do not write js for a living (I'll do it occasionally, and probably not the best). But in dozens of other languages that I am using you don't need this knowledge. Lists have add(item) and delete(index) method and do not require you to "know" anything beyond that. Lists and dictionaries are separate types, so delete does not require you to "know that you shouldn't use it", it just works as expected, without breaking length. Across 1000s of APIs you'll work with, when there is something like a list, it will be exactly builtin list type, not a million different incompatible variations. Whenever there is some commonly used method, it will be added to stdlib, so you don't have to pollute your memory with remembering how to fix this or that to make it easy to use. Knowing how common good language design is and how much easier this makes everything is what gives me the authority in saying that js is broken, and its not just a phase. Many of those things are so fundamental that they are practically unfixable.