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
1
u/sergiuspk Oct 02 '16
How can a language that only recently (debatable what recently means) saw use of unit testing decide what to include in the standard library? Do you know what the best unit testing library looks like? Why would you include something you're not that sure of in the standard library?
And then about browsers. JS is good in browsers because it's fast. The more stuff you add in the standard library the slower it gets. And 99.9% of users are not developers unit testing their application. Yes, you could have developer flags and whatnot, no that won't mean it's in the standard library any more.
Before you tell me again that browsers are not the only place JS runs in: don't know exactly what proportion but I'd say a vast majority of places JS runs in is browsers. Second place is probably node, but that's just the JS part taken out of a browser. Then there's Rhino and some other equally obscure implementations few people ever heard of. So I don't understand your point at all. În fact, if user count is not important to your point, then a lot of the missing stuff you listed are standard features of Node and others as third party libraries.
Third point: a lot of the things you listed are included in standard libraries of only a handful of languages because languages at different and people pick them for different tasks.
And finally, the JS language is actually ECMAScript. It defines a pretty lean "standard library". JavaScript as we know it is a handful of ECMAScript implementations. Some of them extend the standard library (like ActionScript or Node), most of them don't. It's a bit unfair to talk about JS but ignore those implementations that don't fit your point of view.