That stained the node.js ecosystem forever, until now.
This is why I am excited about Deno, Ryan wants to break away from this culture.
That stained the node.js ecosystem forever, until now.
This is why I am excited about Deno, Ryan wants to break away from this culture.
The problem is that code in npm should allow for trust. Either based on signatures, or code reviews by trusted parties, or something like that. Code signed by a long time trusted developer that’s been published for a month should not be treated the same as a 3 minute old commit to a repo by a mysterious developer. These verifications should be automated and npm could give a final ranking.
Why are you assuming devs don't just both use random snippets from Stack Overflow and also download packages with 900 transitive dependencies from NPM at the same time? It's not one or the other.
You can read and/or listen to issacs talk about the actual history here: https://changelog.com/founderstalk/61
In the early days of node, the ability to have tiny nested modules without opening the gates to dependency hell was such a profoundly new and exciting capability that the community didn't need any convincing to (over-)embrace it. As with microservices today or CORBA in the 90s, moving your design's complexity from its nodes to its edges is a powerful way to convince yourself that you've made it simpler.
The solution is to 'vendor' everything and have package updates as part of normal code review.
NPM was never correct. NPM as a business cared about growth. The more packages on NPM servers the more valuable their company, it's as simple as that.