4 ms·
If you care about security, api stability and legal compliance, you should minimize the number of developers and packages you trust. My rule of thumb is that,
by hedora 7y ago
If you care about security, api stability and legal compliance, you should minimize the number of developers and packages you trust. My rule of thumb is that, for a team of ~10 developers, each package dependency adds a week or two of developer maintenance time each year or so.
Having a dozen packages where one will do, and having them do the same thing recursively means you need to spend 144 times longer dealing with such things.
- james-mcelwain 7y agoWhy is number of packages and not package size the relevant metric here? Especially when all the packages live in the same repository, there's practically no more overhead to review each package qua package, versus just a bunch of directories in a package monolith. This "144 times longer" number seems pulled completely out of thin air.
- eximius 7y agoBoth are relevant. To their point, each additional maintainer is also a hidden dependency of each package, so the number of packages is relevant.
- afiori 7y agoIn the case in question the dependency count as crates is separate from the dependency count as git repos. In this case things that would normally be one big library where split in many different functional crates in the same repo.
- hedora 7y agoTwelve packages with twelve dependencies each is 144. I’ve seen >10x this level of blow up on multiple products at multiple companies. One company missed installing malware behind all the firewalls of most of the fortune 500 by less than a week. We made a procedural change to the build process of a product that had been shipping for years. The change hit our CI/CD 5 days before one of the big language package managers started spewing malware at us. Package maintainer count bloat is a serious real world problem. Ignoring it is negligent.
- james-mcelwain 7y agoI'm not suggesting that we should stop reviewing dependencies. I'm pushing back against the idea that internally structuring a large repo or project via independent modules necessarily explodes the burden to review. It may be the case that this preference for well modularized code leads to lots of disparate small packages in the ecosystem, but within the scope of a single project, I see no reason why modularization poses any intrinsic risk.