News for hackers. Stuff that matters.
Re:A one-line package broke `npm create-react-app` by drngdds on Saturday April 25, 2020 @03:35PM (#22980730)
>Or, really, part of standard js, maybe.

I think this would be the solution. I feel like a lot of the NPM transitive dependency explosion just comes from the fact that JavaScript is a language with a ton of warts and a lack of solid built-ins compared to e.g. Python. Python also has packages and dependencies, but the full list of dependencies used by a REST service I run in production (including a web framework and ORM) is a million times smaller than any package-lock.json I've seen.

Re:A one-line package broke `npm create-react-app` by jdminhbg on Saturday April 25, 2020 @04:55PM (#22981409)
This is correct. I post the same thing every time one of these JS dependency hell issues pops up, but it's the case because it's true: The problem is the lack of a standard library. It's not that people don't know how to write a left-pad function, it's that it's dumb to rewrite it in every project and then remember what order you put the arguments in, etc. So people standardize, but they're standardizing on millions of different little packages.

I think the effort that goes into all the JS syntax and module changes would be better put into developing a solid standard library first.

Re:A one-line package broke `npm create-react-app` by galoisgirl on Monday April 27, 2020 @07:12AM (#22994743)
There's a rich standard library, you don't need a package to left-pad.