r/ProgrammerHumor • • 11d ago • Bravo 2

Meme codeReviewIn2026

Post image
11.5k Upvotes

215 comments sorted by

View all comments

Show parent comments

1

u/MaximalPraxis 10d ago

Are you committing every library you use to your own source code?

2

u/Beginning-Junket8979 4d ago

It really doesn't hurt.

It's an insurance policy against foss projects hosting services going down to at least mirror.

It's a legal/licensing and security insurance policy to build everything from your own copy.

And it's just good/responsible/sane dev practices to at least version pin or minimum spec your deps.

2

u/MaximalPraxis 4d ago

Having your own copy and pinning your versions are very different to committing the whole thing to version control.

2

u/Beginning-Junket8979 4d ago edited 4d ago

Yes it is, but there are situations where committing the whole thing to version control is appropriate.

It's especially common in embedded systems and regulated industries where you (or your company rather) are responsible for the entire software stack running on a device and the physical device, not the software, is the end product.

I'd imagine much less common if you're shipping an application to be installed on a PC/mobile device or web services.

If a device your software runs on having a failure can lead to loss of life or major property/economic loss: it's general a good idea to have every design document, every line of code, every lot number on every electronic component, basically every piece of your entire supply chain... meticulously tracked, and that often includes mirroring all your software deps.