by narnarpapadaddy · 2w ago · 0 comments
and some of the things listed are fundamental software issues you _don't_ avoid just by reinventing the wheel, they just change how they appear
honestly in my experience, for most things, problems with reinventing the wheel are way long term larger then problems with re-using software, at least if the re-using is done responsible
I have seen way to many cases of companies trying to avoid using dependencies for something "because this thing is simple" and then realized they are mishandling this, had an outage due to that, had to add those features etc. etc.
In then end often even just taking the 3rd party dependency, giving it a short review and then vendoring it, with rare updates to it, would nearly always have lead to a far better outcome.
(Which is also the recommendation I give for guidelines for "not-too-large 3rd party leaf dependencies", given them a small review, vendor them, keep an eye out(1) for CVEs and then only update when needed with another small review. Through note that this doesn't work for all things, the "not-too-large leaf dependencies" part matters. For other things other guidelines are better.)
(1): As part of normal CVE/Security scanning.
> lack of widely adopted, effective, tooling & infrastructure to trust dependencies
How would I as an individual developer, or even a CTO at a small to midsize company, justify the investment to fix that? It would take buy-in from a Google-level entity to create and rollout such tooling for, say, Java.
Copying a few functions, or even recreating a whole HTTP server from scratch, is a smaller body of work. Sure, I could vendor and keep an eye out for CVEs, that’s a valid approach. But that’s me copying and taking ownership of an external codebase, not taking a dependency. Ownership is easiest for code that you’ve written, because you (or your team) also built the mental model to go along with it.
And if I have to vet a new codebase anyway, I’d rather it be the smallest subset that I actually use; not the full functionality of NGINX.
I can justify making the locally optimal decision (reimplement some functionality so I can truly own it) and that may result in a less than optimal global outcome. I can’t justify doing to the globally optimal thing at the expense of my company.
Ultimately, the incentives aren’t aligned. The activation energy to get from locally optimal to global optimal is too high, and that’s not going to change any time soon. In fact, it’s rapidly trending the other direction. AI makes it easy to reimplement the functionality you need. An idealized view of “if only people paid for high-quality dependencies this would be solved” is not one I can buy in to. That’s not the reality I live in, for better or worse. In a world where nobody wants to shoulder the burden of vetting dependencies, avoiding them is often the best alternative.