45 points nilbus 6 hours ago 38 comments
noident 4 hours ago | parent
skydhash 4 hours ago | parent
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.
latentsea 4 hours ago | parent
Disagree. It was to catch mistakes and jank, and we kept doing it because every time we would find some degree of mistakes and jank.
NewLogic 1 hour ago | parent
latentsea 1 hour ago | parent
iterance 4 hours ago | parent
> You intent to change the system and the rest of us wants to know how.
But why do you care who changes what? Because: you care about long-term maintainability, shipping speed, technical debt, system reliability, policy compliance, and comprehensibility. It is not just because someone is changing something, but because the effects of that change must be controlled. Without these concerns the author mentions, there is no good reason to do code review.
skydhash 3 hours ago | parent
I mostly gave a rapid glance for those as I knew my colleagues and trust them. And for small PRs, those can be judged quickly. What I want to know is why the code needed to be changed and whether the diff actually does it.
Think of it like preparing an essay as a group and you wanted to add a new paragraph. When you present the updated document. I will not be looking at nice wording, whether the document is properly typeset and what not. What I want is a reason for the changes, whether that reason is valid (true if it was a given task) and whether the output is ok in that regard. Because the actual work is unfamiliar theory and any other concerns, you shared them as well and you should have cleaned up before presenting it.
So technical debt and policy compliance should already be answered before the PR, unless you’re an intern and thus like experience in being a professional at your job.
> It is not just because someone is changing something, but because the effects of that change must be controlled
Not really. I assume that whatever you did is a worthwhile proposition. And high functioning team are fast because of that reason. They send each other good changes. It’s people that does not propose good changes that get their further work scrutinized more and more.
origini 3 hours ago | parent
While i always care about code and architecture, plenty of others don't.
thatoneengineer 4 hours ago | parent
popkkksidhd 3 hours ago | parent
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.
Grombobulous 3 hours ago | parent
a012 3 hours ago | parent
rtpg 2 hours ago | parent
- split out backend and frontend to their own mergeable chunks
- have an agreed upon design _before_ you get to the PR stage (if you agree data model is X and API is Y, code is easier to rubber stamped)
- feature flag stuff to reduce risk of merge
- Get all the "obvious" and non controversial stuff merged in and leave the tiny controversial/important nugget as its separate thing
etc etc etc
Like really people should be working in this way anyways, having a decently broken out plan of attack and moving forward. There are hard problems in the world, but a looooooot of people complain about how hard it is to get reviews who don't have the basics of getting things to be more understandable down.
So many people assume this problem is intractable, when (For the vast majority of work done out in the universe) it really is much more tractable than one would believe.
"this is obviously not wrong" is a powerful way to get something merged in.
(There is real friction to doing these things... tho I find a lot of that work is useful anyways to just kind of get through something non-trivial, and helps to highlight potential issues quickly)
brlewis 3 hours ago | parent
jpollock 3 hours ago | parent
"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.
tharkun__ 2 hours ago | parent
jpollock 28 minutes ago | parent
We used to work on local applications. Then when we worked on server systems it was a forklift upgrade with scheduled downtime. We didn't have a time when there were multiple versions talking to each other.
The live upgrade, distributed system, many teams, database schema ahead by several versions, client ahead or behind (by 5-10+years!) is newer. :)
The need to split things up on server boundaries (and schema first) is learned through blood, tears, and rollbacks.
MDTHLN 31 minutes ago | parent
Even with AI writing all our code, I don’t believe there’s been any fundamental changes in what makes a good PR. We’ve known for a long time that small and atomic PRs are easier to review and safer to merge.
The blog post barely seems to address that:
1. There shouldn’t be a circumstance where you have to review a 9000-line PR
2. Anything you can prompt, your coworker can too. I would expect a PR description to already cover those findings and considerations. The question then is, what value are you providing as a reviewer that makes you unique?
tantalor 17 minutes ago | parent
Grombobulous 3 hours ago | parent
Raise your hand if you get a cash bonus for code quality. Anyone?
htdvhtfvvvg 2 hours ago | parent
My experience is that many companies and their management expect ever faster development, augmented more and more by AI. This very often comes with dramatically larger PRs.
Most of us are not in a position to change this substantially at our employers.
So, what to do? Well, here’s a proposal. Is it good? Not one comment here seems to concern itself with that, just shallow dismissals and claims that anyone encountering this is on a bad team, or at a bad company, or holding it wrong. Combined with the ever present “slop!”
What the fuck am I supposed to do with that? Great, I’ll just get a new job, in the hardest market in years. Quit “on principle”? Come on.
thereader12 1 hour ago | parent
markus_zhang 1 hour ago | parent
In data engineering, or rather, in data modelling, we now see massive PRs with very complex business logic changes made by LLM. The changes are impossible to be explained by a short description of human language -- they were produced by prompts after prompts.
I sincerely think we data engineers should get out of the data modelling business -- let the business stakeholders write whatever queries they want -- they define KPIs anyway. We should call ourselves data platform engineers and that makes both teams happier.
xdennis 1 hour ago | parent
/br https://technology.doximity.com/articles/how-i-stopped-dread...
Now, I no longer have to read programming blog posts. I just use Claude and it automatically creates skills and memories that alter my workflow based on what the blog post recommends.
God I love the future.
gagabity 56 minutes ago | parent
hapless 35 minutes ago | parent
baristaGeek 32 minutes ago | parent
The differences of AI fluency and more importantly, AI positiveness, might have a huge variance across members of a single team.
How have you guys been handling this?
esafak 23 minutes ago | parent