Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In the beginning of node.js life, NPM the company had a guerilla marketing that says: The smaller the package, the better for reusability.

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.



I think that’s throwing the baby out with the bathwater. Wouldn’t it be logical that when people use snippets from Stack Overflow or classical algorithms from Wikipedia the pasted code was actually treated as a dependency so you can get warnings and updates in case errors or security issues are found? It also helps for proper licensing and attribution.

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.


> I think that’s throwing the baby out with the bathwater. Wouldn’t it be logical that when people use snippets from Stack Overflow or classical algorithms from Wikipedia the pasted code was actually treated as a dependency so you can get warnings and updates in case errors or security issues are found? It also helps for proper licensing and attribution.

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.


That's not an accurate history; npm started around 2010 and didn't become a company until 2014. Perhaps it was all part of a master plan to build the perfect trojan unicorn, but I invite you to look at some of the 2010-era code and blog posts to judge for yourself: https://github.com/npm/cli/tree/e790c85a https://blog.izs.me/2010/11/10-cool-things-you-probably-didn...

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.


IMO, npm is correct/better.

The solution is to 'vendor' everything and have package updates as part of normal code review.


> IMO, npm is correct/better.

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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: