News for hackers. Stuff that matters.
Re:Dependency by obilgic on Monday August 17, 2020 @08:26PM (#24193966)
Yes, It's dependency system's weakness, but also that's what makes this system very strong:

If one of those base level things break, everyone who depend on it, will come together and replace/fix it instantly.

Re:Dependency by hn_throwaway_99 on Monday August 17, 2020 @09:23PM (#24194356)
This is kind of true.

Look at the recent security issue with lodash. lodash is a dependency of a huge number of javascript and node projects. For people who would say "don't use tons of random libraries", lodash was a great choice; it was almost the equivalent of a standard library for JS before ES6. Problem was, for all intents and purposes it was abandoned about a year ago. Couple months ago a security issue was reported, it wasn't fixed, and then 'npm audit' started failing builds with lodash as a dependency. It's like all of the sudden half the node ecosystem started failing.

The problem was not that the bug wasn't fixed, it's that the original author wasn't really involved any more, and it took a long while for other people with commit rights to figure out just how to get the build working. But the problem with any reasonably complex JS project is that there could easily be thousands of references to lodash. NPM doesn't make it easy to essentially say "I'm changing the namespace of lodash to mean this instead of that."

Dependencies are pretty unavoidable, and I think the software engineering community will actually start to get better at handling what happens when a widespread dependency needs to go on life support.

Re:Dependency by rkuykendall-com on Thursday August 20, 2020 @09:58PM (#24231188)
Lodash is in an incredibly pathetic state. I wanted to help, but last I checked the project is impossible to build and none of the tests pass. It's a completely broken repo and the maintainers barely contribute.
Re:Dependency by MisterPea on Monday August 17, 2020 @08:55PM (#24194154)
And according to Linus's law if enough people depend on it, it won't matter how complex the breaking bug is.

https://en.wikipedia.org/wiki/Linus%27s_law

Re:Dependency by tprice7 on Monday August 17, 2020 @11:25PM (#24194946)
> If one of those base level things break, everyone who depend on it, will come together and replace/fix it instantly.

I don't see how this is causally related to that dependency being thanklessly maintained by a single person. Maybe I misunderstood what you are trying to say.

Re:Dependency by gowld on Monday August 17, 2020 @08:36PM (#24194037)
Or they won't.
Re:Dependency by ikt on Monday August 17, 2020 @08:55PM (#24194150)
This precedent suggests they will:

https://en.wikipedia.org/wiki/Heartbleed#Root_causes,_possib...

The industry's collective response to the crisis was the Core Infrastructure Initiative, a multimillion-dollar project announced by the Linux Foundation on April 24, 2014 to provide funds to critical elements of the global information infrastructure.[192] The initiative intends to allow lead developers to work full-time on their projects and to pay for security audits, hardware and software infrastructure, travel, and other expenses.[193] OpenSSL is a candidate to become the first recipient of the initiative's funding.[192]

After the discovery Google established Project Zero which is tasked with finding zero-day vulnerabilities to help secure the Web and society.[194]

Re:Dependency by andresgottlieb on Monday August 17, 2020 @08:40PM (#24194056)
Everything can happen, but your scenario has a very low probability, incentives do work