NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
▲How I Stopped Dreading 9000-Line PRs and Remain the Engineer (technology.doximity.com)
jpollock 1 days ago [-]
Here's the description of the change from the ticket:

"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.

MDTHLN 22 hours ago [-]
Thank you! I couldn’t agree more with this comment.

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?

drona4tech 10 hours ago [-]
[dead]
tharkun__ 24 hours ago [-]
This so much OMG. People (and I mean actual developers of yore) are just so bad at decomposing changes into smaller ones that it's amazing they ever had a job. I fight against this at work every single day. And AI did not make it better even thought it should be able to.
jpollock 22 hours ago [-]
To be honest, as a greybeard developer of yore, it is understandable.

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.

tantalor 22 hours ago [-]
Is this description supposed to be gobbledygook?
jpollock 18 hours ago [-]
I read it as...

They're describing an email driven marketing campaign sourced from a 3rd party CSV file. The emails may be of low quality, so they need to track the results during the campaign.

fwip 10 hours ago [-]
Looks like LLM output that is describing changes to other documents, probably also LLM-written.
popkkksidhd 1 days ago [-]
This is pretend review. Any PRs you can review like this effectively would not have taken much time to review manually anyways.

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.

rtpg 1 days ago [-]
There's also just the same old stuff that's always worked, like

- 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)

nilbus 21 hours ago [-]
It has been working for me better than you might expect. The example in the post is an abbreviated one to give an idea. The PR was definitely not thousands of lines. A substantive PR comes with more substantive material to review and usually more real findings. More to review, but comparatively still a huge win!
Grombobulous 1 days ago [-]
That's an ideal world where you don't work for an underpaying mediocre merger and acquisition Frankenstein corporation where half your team consists of unqualified chuds that your EM inherited and therefore never passed your team's interview standards, and they can't fire because the team is already understaffed and the company won't backfill them.
a012 1 days ago [-]
I feel like you’re describing my team, also some how we’re always under- and over-staffed at the same time
GertLH 4 hours ago [-]
Curious how you maintain that shared architectural understanding when multiple agents are working across different workspaces simultaneously. Something I also struggle with...

Are you generating a diff for each PR, use hooks, or relying on agents to explain the architectural impact?

We're working on this problem with enola, using deterministic dependency analysis to understand what changed between two versions of a codebase.

CodeHydra also looks interesting. There might be an opportunity to expose architectural changes directly within those workspaces.

hankbond 20 hours ago [-]
Sup, ed.

I think at the end of the day I would like to see us focus less on reviewing code (AI assisted or not) and focus on proving the code exhibits the behaviors we want. A good e2e functional suite can be defined from design, and half the questions you asked during PR-time seem to actually be more appropriate for design-time.

I don't really have any concrete issues with your post, but I don't know that any amount of review would make me feel comfortable merging in a 9k line change without proving it wont break things.

Unless production monitoring and rollbacks are a lot more advanced then when I was still there.

Nice to see you post on here!

stefanhoelzl 16 hours ago [-]
At [dayjob] Reviews are currently one of the bottlenecks and we agreed mostly on checking the decisions the author made together with the AI.

We regularly do huge PR like mentioned in the article and PR review is mostly architectural, docs and keeping an shared understanding of all systems.

We accepted a bit of loss in code quality for a tremendously increased development speed.

We also use codehydra [1] to further automate this process. Each PR, Support request or internal ticket automatically pops up there in your IDE as own workspace and immediately starts working on it with an initial prompt and notifies you when a decision is needed.

[1] https://github.com/stefanhoelzl/codehydra

rosyyyy 4 hours ago [-]
[dead]
htdvhtfvvvg 24 hours ago [-]
I don’t understand the hate here.

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.

what 21 hours ago [-]
> ever faster development, augmented more and more by AI. This very often comes with dramatically larger PRs.

I’m not sure why faster development augmented by AI means you have to have larger PRs?

nilbus 9 hours ago [-]
Because every chunk has human-hands-on overhead that slows you. Big is fine if we learn how to handle them as well as the small ones.

PRs shouldn't necessarily be big, but we shouldn't need to go out of our way to avoid them when they're the most efficient thing.

jpollock 8 hours ago [-]
Except, they aren't. Streams of smaller changes make the scary bits stand out. This frequently makes individual parts rubber stamps. It also makes recovery/rollback faster when there is a problem. It's hard to rollback a change when it also contains a db migration.
oblio 20 hours ago [-]
Because the natural reaction of LLMs is to generate text and the "faster development" means there is less time for any individual thing such as pruning useless extra fluff.
nilbus 9 hours ago [-]
I like this Breathe In, Breathe Out concept for pruning & simplification. This is from Obie Fernandez' Impatient Programming framework to succeed XP in the agentic era. https://impatientprogramming.org/rules/#rule-12
markus_zhang 23 hours ago [-]
I don't think this works for data engineers. The example given in the article is more technical than the problems we face everyday.

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.

nilbus 9 hours ago [-]
To make this work for you, try this: Give a smart model one of these crazy PRs that you've already reviewed, so you know what you'd want to see. Tell it conceptually what you want to have presented to you that you'd normally have to infer from the code. Have it explore ways to present a PR to you to capture that, going through all the business logic changes and whatever else you need to be aware of and review. Have it A/B test variations with you until you have something you like.

I did that with mine, and it improved the output tremendously.

Blog post example had to be trivial and short, sorry.

markus_zhang 6 hours ago [-]
I do have a good model but I don't need a model to see something is wrong. For example I'd see some crazy filtering in certain fields (including 50 or excluding 30 ids, why?).

The guy is just Tab and Tab and Tab.

datadrivenangel 19 hours ago [-]
Until the business stakeholders get confused about why they're getting multiple rows per 'row' because they've messed up the cardinality and grain and have lost referential integrity
markus_zhang 13 hours ago [-]
It’s even more complicated than that. The problem is that we have to gate the PR review. I just hope they take it over.
baristaGeek 22 hours ago [-]
The blog post mentions people still reading code line by line in review, while other people are automating it with AI as much as possible.

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?

nilbus 9 hours ago [-]
They're both doing the same job with different tools/methods. Those who eschew AI will are noticeably slower but will also notice some number of important things that AI summarizes won't. There can be some value in the diversity.
thereader12 23 hours ago [-]
Lgtm
skydhash 1 days ago [-]
I laughed at this

  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.

iterance 1 days ago [-]
Your statement and the author's are compatible. Your statement is just a more proximal reason. You say the reason is:

> 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 1 days ago [-]
> 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

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.

latentsea 1 days ago [-]
> 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.

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 23 hours ago [-]
I continue to catch mistakes and jank in large AI driven PRs. The problem is a lot of people are being incentivized to proclaim their code doesn't stink. We have these super human automation machines but many are saying it is a step too far to expect logical clearly defined single indent changes.
latentsea 22 hours ago [-]
Everyone is holding it some degree of wrong.
origini 1 days ago [-]
A big reason is for sure increased quality through a second pair of eyes looking over it.

While i always care about code and architecture, plenty of others don't.

varispeed 1 days ago [-]
PRs should probably include prompt history to reveal intent of change.
brunoarueira 24 hours ago [-]
In my modest opinion, they must have ADRs or design decision docs, so it's more controlled and can be used by any AI assisted tool.
BatchJob 22 hours ago [-]
Handling PRs is not engineering its secretarial work.

Projects with good engineers dont need code review.

clarkdale 22 hours ago [-]
Computer programming is not engineering.
seattle_spring 21 hours ago [-]
What's the largest organization you've worked for?
esafak 22 hours ago [-]
You do not have to dump 9000-line PRs on your team mates' laps just because you use agents. Use the same agent to carve it up. Create stacked PRs.
Tomis02 4 hours ago [-]
> Use the same agent to carve it up.

The agent doesn't know how to code. It will solve the problem, but the output is unreadable. Carving it up doesn't solve that problem.

nilbus 10 hours ago [-]
Most shouldn't be. Like I said, it's rare.

But we should be able to handle them when they come without sacrificing review quality, turning it into a skim and rubber stamp.

OrderShift 23 hours ago [-]
[dead]
Grombobulous 1 days ago [-]
I don't dread it because the paychecks keep coming in. My company's code quality isn't my problem. I haven't gone out of my way to do anything about the increasing size of PRs. I do read them, but if they're long, I sure do tend to skim through them as human nature dictates.

Raise your hand if you get a cash bonus for code quality. Anyone?

thatoneengineer 1 days ago [-]
There are some people and some arguments that might convince me of this thesis, but shameless Claudeslop only makes me doubt it more.
Kwpolska 17 hours ago [-]
This is step 1. Step 2 is letting Claude post its comments on GitHub, because they're so accurate. The end game is Johnny's Claude talking to Jimmy's Claude over GitHub PR review comments, with neither meatproxy actually understanding the code, and if a human dares to fix the review comments themselves, they will have to wade through a lot of nitpicks and confidently incorrect comments.
nilbus 10 hours ago [-]
Most of them mismatch I find is that the agents want to ask for fixes for things that don't matter and that I omit. It would be nice if it could be trusted. Someday maybe, and I guess that's what you're saying.

And how do you maintain the mental model of the changes happening in your system for when you need it?

brlewis 1 days ago [-]
This will work great just as long as all the issues you'd want to comment on in the future resemble issues you've actually commented on in the past.
nilbus 9 hours ago [-]
It's still reasoning about the code. This is personalization guidance on when it would otherwise be wrong.
whycombinetor 1 days ago [-]
We are back in the era of move fast and break things.
knodi123 1 days ago [-]
No, this era is "move faster, and break things in new and exciting ways"
gagabity 22 hours ago [-]
This is pretty much built into Claude with /code-review can't help but think most of these skills will be mostly useless, same for factories they will all be provided by Ant, OAI, GitHub, Linear etc. You need very particular requirements to build your own.
nilbus 9 hours ago [-]
You missed the point. Claude doesn't usually know your values and business context, and the mental model you build is still valuable and necessary. That's where /review misses what's important and worries about what's insignificant.
xdennis 23 hours ago [-]
I fully agree. I also think that it's hard to keep up with all these blog post about adapting to the vibe future. But I've come to accept it. So I've built a skill that reads for me.

/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.

archagon 20 hours ago [-]
False premise, because you have not actually remained an engineer. Sorry.
hapless 22 hours ago [-]
ai slop article about how our man learned to love slop
playconsolestor 1 days ago [-]
[dead]
ginthian 21 hours ago [-]
[dead]
tpoacher 13 hours ago [-]
> The agent reads the diff. I make the calls.

Apparently the agent then writes the blog too. /s

Obligatory: "Why this matters!"

noident 1 days ago [-]
Slop.
nilbus 1 days ago [-]
Human-written slop at least
thunderpaper 1 days ago [-]
Agreed.

Many people like to point out that "humans can create slop too," which is true.

But human-written slop is better than AI slop, even if no slop at all is best.

noident 8 hours ago [-]
Nah, a human didn't write this.
polymer8563 1 days ago [-]
barely
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 01:40:11 GMT+0000 (Coordinated Universal Time) with Vercel.