Ask HN: Why is everything in JavaScript changing so fast?
I think one of the things that&#x27;s led to the mess with javascript is that it&#x27;s kind of crazy to have settled on using a language to write such large applications that:<p>- Has no standard library.
- Is used to automate host platforms that have either no standard framework or very little (e.g. Node on v8 doesn&#x27;t have <i>nothing</i> but it&#x27;s quite small).
- Has no module&#x2F;namespace system.<p>The effect of this is that immediately, anyone building anything in non-trivial has to make a decision about how to fill in things that would be covered in a standard library. I&#x27;m not even talking about fancy stuff, just the stuff supplied by underscore, lodash, etc. The choices are basically:<p>1) Write all the code yourself. This is an extremely low ROI option
2) Adopt a series of libraries and hope you can get them to work together
3) Adopt a framework, that by its nature, will be designed to use some sort of new pattern and this pattern will be expressed on top of whatever libraries the framework uses, so just draft behind that.<p>There aren&#x27;t really many other mainstream systems where a language is used to specialize applications on a platform where this situation obtains. Windows, OS X, iOS, Android, even Java, come with enormous, enormous amounts of library code.  Generally, this library code also pushes one fairly firmly towards certain design patterns.<p>Imagine if we all decided to use...hmmm...Scheme, I guess, to develop Windows applications, and you took away everything but the lowest-level Windows APIs. I&#x27;m using Scheme because the Scheme standard outlines a remarkably small language that has nothing approaching a standard library.<p>We&#x27;d probably be in a similar situation. How do you do this? How much does adopting this or that library force you to do this or that? It&#x27;s just not very common to have a situation where to do anything non-trivial, you need to either:
 - adopt an enormous amount of third party code (because the situation works at every level, each third-party solution will also not be built on a standard library ecosystem)
 - write an enormous amount of boilerplate code.<p>And further, the issue is exacerbated by the fact that js doesn&#x27;t really have a standard module system, so even the approaches taken to fill these gaps are frequently non-compatible, or just choosing which system to use to manage modules often means replacing huge chunks of your application.<p>There are other reasons why JS the language is moving, all of the sudden: JS has had a lot of rough edges and all of the sudden a confluence of interest, capability, and technology has made it possible to sand down some of those edges.<p>But I think even if the ES process slows down, and we all agree that language-wise the features in the language are pretty good or something happens that freezes, we&#x27;ll keep seeing lots of churn because of the interaction between every project being built on towers of third party code with far-reaching effects.<p>When Java, for instance, was released, the standard library it shipped with included:
 - a set of standard container classes: hashes, vectors, arrays, etc.
 - a rich set of real types (e.g. numbers that weren&#x27;t insane, Objects for compatibility with the object system, primitive types in the language for performance)
 - a whole tree of calendar&#x2F;date manipulation code
 - a standard way of connecting to SQL databases and all the code for that
 - a standard GUI-drawing and event-handling system
 - a big, rich set of APIs for handling IO of various kinds with different performance&#x2F;complexity tradeoffs.
 - a concurrency api, threadpools, etc.<p>That&#x27;s just a sample. And all of the bits worked together, and sort of implied patterns in how things should be built and used.<p>You could certainly replace anything, should you choose to, in your project (e.g. the calendar stuff really sucked), but the point is, there was a default, and there was a standard pattern for where and how to bring in new library code, and that new library code would in turn be built on as little third-party code as possible.<p>Look at an average iOS project&#x27;s Podfile or Carthage file, Android project&#x27;s Gradle file, and then look at a Node or browser js project&#x27;s package.json. Then actually look in Pods and node_modules. The average amount of third party libs in a JS project is many orders of magnitude higher than in the others.<p>There are like, what, five or so competing implementations of Promises in javascript land? And they aren&#x27;t mutually compatible always, so this means if you want to use non-ES6 babel-compiled Promises in your code, you have to:
 - choose a library
 - hope that other libraries and frameworks you use use the same style
 - add shims or something where they don&#x27;t, or else switch out the library and framework.<p>This is just like...no one writing an Android app is like &quot;which Runnables library are you using?&quot;.  No one writing an iOS app is like &quot;soo...the new GCD spec looks interesting, which GCD lib are you using for your project? Oh yeah how spec-complete is it? Does it work with AFNetworking?&quot;<p>&quot;Lodash makes JavaScript easier by taking the hassle out of working with arrays, numbers, objects, strings, etc.
Lodash’s modular methods are great for:<p>Iterating arrays, objects, &amp; strings&quot;<p>Iterating arrays, objects, &amp; strings is something that most other languages have decent std lib support for, and so even your third-party libs will use the host language&#x27;s affordances. In Javascript you have to ask these questions all the time.