DEV Community

Discussion on: The node_modules problem

Collapse
rhymes profile image
rhymes

JavaScript needs a standard library

Collapse
mroggy85 profile image
Oskar Lindgren

Why? What is wrong with the new ES6/7 standard?
I am interested in what you are missing.

Collapse
rhymes profile image
rhymes

ES6 is a language, a standard library is a little bit more than that.

The absurdity of the amount of third party packages, utilities, snippets, slightly different implementations and so on that you find on npm might be a result of the lack of a common standard library.

That's what I meant.

Thread Thread
davesanders profile image
Dave Sanders

This was talked about in an article on Medium I read recently: hackernoon.com/whats-really-wrong-...

Thread Thread
rhymes profile image
rhymes

Thanks, I've read it. Well, I think everyone would agree on the practicality of a common and official standard library. The hard thing would be to find who's going to take lead on that. You need at least the support of the TC39 committee, the big browser vendors and so on. The issue is that most successful open-source projects have either a BDFL or a cohesive core team, usually there since the beginning, not 20 years after the creation of the language. I hope time and possibly some fed up big players in the community will result in a real conversation being started.

Nobody forbids you to write your own package "is true", it just probably shouldn't be included automatically by hundreds of packages 😅

Collapse
wintercounter profile image
Victor Vincent • Edited on

It's coming. Chrome already has the first stdLib built-in. More are about to come.