r/ProgrammerHumor • • 21d ago • Bravo 2

Meme codeReviewIn2026

Post image
11k Upvotes

215 comments sorted by

View all comments

1

u/edgetools-dev 21d ago

We've been merging "small" PRs with version bumps of libraries for years.

Those library versions often have hundreds or thousands of lines of code changes in them.

We don't care, we assume safe because "it works".

Guess what... merging a 15,000 line agentic PR that also "works" isn't inherently worse than your 15,000+ lines of library changes you also merged.

If you trust the evaluation criteria, the rest is implementation details.

6

u/JohnZopper 21d ago

We do not assume it's safe because it works. We assume it's safe because we assume that the maintainers and the open source community did a proper evaluation. We also take reassurance in the fact, that if there is something wrong, there will be dozens of other projects running into the same issues, ideally even ahead of us. It's a typical supply chain risk and it should be carefully weighted. That's not the same as trusting the code which was not reviewed or used in production by anyone.

1

u/MaximalPraxis 21d ago

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

2

u/Beginning-Junket8979 15d 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 15d ago

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

2

u/Beginning-Junket8979 15d ago edited 15d 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.

1

u/_the_sound 21d ago

Why does this take reek of cope.