logoalt Hacker News

dathinab • yesterday at 8:34 PM • 0 replies • view on HN

> Anxious and lazy dependency-first development culture

I think this is the completely wrong takeaway.

Ober the last ~15 years I have probably used around ~10 web frameworks/libraries

_not a single one was even close to being complete or mostly correct, even just for standard HTTP ~1.1 handling_!!! (The routing, path, header handling. Not any of the complex stuff in HTTP2, Quick etc.)

the problem isn't using dependencies, that is the solution (not reinventing the wheel again).

And preferring reusing solutions which are more complete, practical testet and have more resources to maintain/improve basic functionality is (in most situations) not "anxious" development, but (should be) common sense.

The amount of hidden complexity in even somewhat basic stuff like HTTP is enourmous, rewriting everything all the time is wasting billions across the industry all the time and (in general) increases the chance for bugs.

The problem isn't "using dependencies" or small dependencies, but:

- availability (or lack) of high quality well maintained dependencies

- "no one" wanting to pay for software dependencies

- misguided tendencies for 'clever' & overengineered solution in one extreme (e.g. the stuff which lead to log4shell)

- misguided obsession with deceptive simplicity in artificial examples which lead to 1001 incomplete solutions because of the obsessiv simplicity doesn't stop at cutting out over-engineering but also cuts out fundamental parts

- lack of widely adopted, effective, tooling & infrastructure to trust dependencies.

- lack of tooling to more efficient reuse and compose working parts, the way we do programming seems just very fundamental broken.

- also a lot of legacy tech we are stuck with making many things unnecessary complicated

Also as a side note, number of packages != number of entities to trust. Weather you use 10 or 1 package from the same source, maintained and published in the same way often makes little to no difference for supply chain security.