How I Stopped Dreading 9000-Line PRs and Remain the Engineer
https://technology.doximity.com/articles/how-i-stopped-dreading-9000-line-prs-and-remain-the-engineer"Intent: A valid CSV replaces a draft campaign’s audience. A file with errors keeps the previous list. Once delivery starts, the list can’t be replaced and the campaign can’t be deleted. The product proposal adds that editors see valid and rejected counts plus downloadable row errors."
That should never have been one change. That's at least _3_ changes.
1) "A valid CSV replaces a draft campaign’s audience. A file with errors keeps the previous list."
2) "Once delivery starts, the list can’t be replaced and the campaign can’t be deleted."
3) "The product proposal adds that editors see valid and rejected counts plus downloadable row errors."
With (2) and (3) possibly becoming multiple changes depending on how the code is architected.
Having all of this in 1 change hints at architectural problems - there isn't proper separation of concerns in the system. At the very least, if there are multiple components, it makes version migration a lot more difficult to reason about - it is possible for the CI system to see software versions which don't represent production. Tests will pass which result in problems when deployed.
Better system is to simply build trust on the team so PRs are rubber stamps going in. That’s how the best teams I worked on prior to AI worked, and it scales very well to post AI. Involves some discussion and agreement prior to the PR being raised.
Why did code review ever matter anyway?
We code review because:
We care about the architecture and design of the code for its long-term maintainability.
We want to keep shipping at a fast pace, unhampered by technical debt.
We have to keep a mental model of our architecture, or else we can’t reason about it.
Nobody wants the codebase to evolve into a poorly-designed, unrecognizable mess that even Claude can’t reason about!
I don’t know about corporate jobs, but code review has mostly one reason: You intent to change the system and the rest of us wants to know how. Otherwise, you could just sent a message about. Things like maintainability, architecture,… were already a given before the PR is even proposed. Some mistake can be caught there, yes, but that’s not the primary purpose.That is why so many devs are grumbling. Slop PR authors don’t care about communicating the intent of a change. They had an idea or a task, but they won’t describe their work and its impact on the software system, nor they want to justify their decisions.
What the author said about code review is what should be the guiding principles of programming. It’s already too late at the review stage to check for those. And anyone that fails those regularly is merely a bad engineer. A PR review is not an exam, you shouldn’t propose something that you aren’t sure is already good.