3 ms·
> it also can simultaneously be not OK for you to publish it in a package directory with a generic name and a description Package repositories can be open to a
by matheusmoreira 7y ago
> it also can simultaneously be not OK for you to publish it in a package directory with a generic name and a description
Package repositories can be open to all developers or curated by software distribution maintainers. Being able to publish an open source project without dealing with Linux distribution maintainers is a major selling point of programming language package managers.
Why even let people publish packages if they're not meant to?
> it is totally their fault for deploying something without carefully reading your code to figure out that it was a bit shitty beforehand... but should they really have to do that?
Absolutely. Using someone else's code means implicitly trusting them. Everyone should at least check out the package's source code for quality, sanity and signs of maintenance.
- Vinnl 7y ago> Why even let people publish packages if they're not meant to? I don't think GP even so much as insinuated in their post that people aren't meant to publish packages in general.
- matheusmoreira 7y agoThe argument was: only packages which are good enough for production use ought to be published on official package repositories. This allows people to assume that all packages on the repository are stable, well maintained, good quality software without manually verifying each dependency. So why even let random people sign up a developer account and publish packages? Maybe they need a separate curated "serious packages only" repository.
- ex_amazon_sde 7y ago> Being able to publish an open source project without dealing with Linux distribution maintainers is a major selling point of programming language package managers. This is how disasters like leftpad happen. The bar for publishing software is extremely low and we pay the price every day in terms of security, bloat and complexity.
- watwut 7y agoLeft pad disaster happened because 1.) npm took away another authors project 2.) npm makes it overly easy to unpublish already published projects. That is ridiculous. It has nothing to do with how easy it is to publish things. Also, adding own left-pad once disaster happened is quite easy in node.js modules system.