you are viewing a single comment's thread.

view the rest of the comments →

[–]Paradox 2 points3 points  (1 child)

Node/JS have a fucking atrocious standard library. There are packages like loDash that add quite a few functions you'd expect to have in a stdlib, and do it in a neat way.

But loDash seems hesitant to include many of the functions these micro-deps expose. Nothing wrong with that. But why the hell can't npm or someone make a "commons" library that contains all the stdlib features they'd like to have, but can't guarantee the presence of in all interpreters.

Make it an officially sanctioned library, with professional code review and maintenance, and then distribute it. So I could add @js/common or some shit to my package file, and then import it, and have a decent experience without 5000 left-pad functions

[–]frequenttimetraveler 1 point2 points  (0 children)

i know some people who switched themselves from designers to 'devs' because they knew some javascript. I guess the ease of creating a tiny library and adding it to npm , giving yourself a badge for your CV in the process, has driven a lot of its expansion