4 ms·
People talk about DRY and then happily type pip/gem/npm into their terminal, and never look at 99 percent of what they just downloaded... Did we all forget lef
by zer00eyz 2y ago
People talk about DRY and then happily type pip/gem/npm into their terminal, and never look at 99 percent of what they just downloaded...
Did we all forget leftpad? https://qz.com/646467/how-one-programmer-broke-the-internet-by-deleting-a-tiny-piece-of-code https://qz.com/646467/how-one-programmer-broke-the-internet-...
- Leherenn 2y agoIsn't leftpad the natural conclusion of DRY? Everything is a unique, small, contained and tested library that other code can depend on instead of reimplementing it? The ultimate one source of truth, where if it breaks half the internet breaks.
- zer00eyz 2y ago> Isn't leftpad the natural conclusion of DRY? Everything is a unique, small, contained and tested library that other code can depend on instead of reimplementing it? There is nothing in dry that says "util" or "frameworks" or "toolchains" are bad. > The ultimate one source of truth, where if it breaks half the internet breaks. Dry says nothing about versioning, or vendoring or deleting your code from the internet... The reality is that leftpad wasnt used by that many things. Its just that the things that did use it were all over the dependency graph...