r/AIcodingProfessionals • • 16h ago

Discussion Senior developers insisting on reviewing code made by claude

/r/ArtificialInteligence/comments/1yaxcm2/senior_developers_insisting_on_reviewing_code/

Imagine you work for a company with some senior developers that used to write code manually and tend to understand everything line by line.

Now you as an experienced engineer, and now an AI Engineer put together high quality code with Claude Code (with near perfect prompt and context), which has test cases and self explains itself. You are now just hyper productive with AI.
Now the senior engineer sees you produce massive amount of code in minutes and does not trust AI and asks you to explain the code, the way they do.

To me it is a show stopper. To them, they want to protect the product and the customers and the company.

What do you do?
I have already tried training to help them understand things but no use. Maybe they are right in some ways?

0 Upvotes

56 comments sorted by

4

u/SadBookkeeper6220 15h ago

If you designed a perfect prompt with perfect context and the AI built what you asked for exactly to specification, and you designed a bulletproof verification … why can’t you explain the result again?

-2

u/rezakhan0 15h ago

I cannot explain the code line by line, i just can explain the solution

1

u/tcpukl 13h ago

How are you even in this job if you can't code?

1

u/rezakhan0 12h ago

I don' think I ever said I could not code. I am trying to boost performance here but adjusting the processes if possible. I am a developer, but it's time for fixing the processes now that there are AI tools out there

1

u/tcpukl 12h ago

Not explain the code sounds incompetent to me. I would sack you.

1

u/rezakhan0 12h ago

Not understanding english, I would not respond to posts

1

u/tcpukl 7h ago

What does that mean?

1

u/lawrencek1992 12h ago

Same. Like fine if you miss a bug in the code. But are you not reading what the agent writes before publish???

1

u/Narrow-Low-3137 12h ago

Then you are not doing your job. You should be a project manager, not a software developer.

0

u/rezakhan0 12h ago

I cannot here means I don’t want to invest too much time on the code, just understand the solution and skim it. In other words as a developer how can we rely more on technology here

2

u/taco__hunter 12h ago

That's not how this works.

1

u/SadBookkeeper6220 15h ago

The prompt and context you gave the machine isn’t better than your own. If yours clearly has a massive hole in it, so does the AIs.

1

u/tehfrod 11h ago

Can you explain the line of code that will result in a 3AM page, a four hour outage, and a postmortem on Tuesday?

9

u/AnnualReview2383 16h ago

Listen to them, they are correct.  Of course you should review code 

1

u/swirllyman 14h ago

If you can't explain what you're code is doing, then by nature, isn't that simply "vibe coding"?

1

u/stikves 13h ago

In these cases have Claude write the response.

"Yes, I see that your code works and has tests, but I asked Claude for a quick review. And had to stop after finding 20 major issues. Can you take a look at them?"

"Also, can you explain why your architecutre does XYZ, but we already have ABC in the codebase that does the same thing, and better. Claude seems to have used a brute force algorithm, while the optimal one exists"

1

u/StCreed 11h ago

If you think their code won't have a dozen problems when you point Claude at it and ask it for a critical review, you're deluding yourself.

1

u/stikves 5h ago

That is what I said

(Actually I mentioned 20, not a dozen)

1

u/lphomiej 14h ago

The bar for my team is that they should understand the code generated by their AI and they should be able to defend its decisions. We also do a human, peer code review. We also don't trust AI blindly -- if someone copy/pastes from AI or leaves a ton of pointless comments from iteration (sloppy behavior), then trust is reduced and scrutiny is turned up.

For context, we have a small dev team (4 people), a stable product that drives a significant portion or our company's revenue, and it will will exist for the next 3-5 years at least (likely longer). So we are building things to be as maintainable and reliable as we can, within reason. We don't want agents or ourselves to be bogged down constantly fixing bugs.

1

u/rezakhan0 14h ago

So do you say the author of the code needs to understand bit by bit or the whole picture of the solution? Honesty usually understanding what ai has made sometimes takes longer than writing it yourself. It’s somewhat defeats the purpose then? I am not sure

2

u/muuchthrows 11h ago

How confident are you that your "whole picture" understanding of the solution is correct? How do you test your knowledge? The benefit of the code is that it is the ground truth, if you understand it you understand the solution. Once you go higher, which you probably should, there is no clear way of judging your own understanding of the solution. But do you have any strategies in place that would give others confidence in that you truly understand the solution? Or are you asking them to just take your word for it?

2

u/rezakhan0 11h ago

Yeah that is the problem to solve. How do you give people confident (when you have it) so they trust the changes without them having to spend lots of time on reviewing, so spot on!
Some say you need to gain trust, some say smaller PRs...

2

u/muuchthrows 11h ago

I would also add to explain to them your process. If your process is simply "A perfect prompt and context" I wouldn't trust it all, and to be frank it would even be a red flag to me. Not because of you personally, but because I wouldn't trust myself with that process, no one writes a perfect prompt.

If you instead would describe to me how you have a process where you have multiple different AI providers (Claude, GPT, Gemini, etc) all review the PR, how you always ask for at least one adversarial code review, how you have orchestrated multiple AI agents to A/B test the product change/feature, and you have ensured it has run in as a real environment as possible, then I would feel much more confident.

Additionally, that you have collected hard evidence (like screenshots, logs, output that can be independently verified) that all of these activities actually happened.

If you said all that I would even press the merge button myself without looking at the code...

1

u/rezakhan0 10h ago

Exactly! like exactly. I am saying when you collect all the proofs, we expect easier reviews

1

u/rezakhan0 10h ago

what do you mean by output that independently verified? who verifies them? a human?

1

u/EMunney 12h ago

Context matters. Are you doing inbound marketing or are you programming satellite guidance computers or are you centering a div on an html page?

1

u/crimsonpowder 11h ago

I used to be an every line type of person, but about 18 months ago I realized I don't understand every line of assembly either.

And I forget how things work that I built 3 years ago.

And the dude that knew the billing system really well bounced a month ago, so no one has perfectly-current knowledge of all the logic in it right now.

Etc.

Once I realized all of this, I was totally fine not being a dinosaur about model-generated code. As long as I have the ABILITY to go in and understand later when I need to, I don't need to review every voltage drop on the wire.

1

u/mooglinux 12h ago

To turn, they want to protect the product and the customers and the company

You say that like it’s a bad thing? The job is more than writing code, it’s making sure shit works properly. You absolutely should not just blindly accept what AI generates, because if shit goes bad it’s your job on the line, not the AI.

Rock climbers always check their own knots, because it’s their life that depends on it. Parachutists pack their own parachutes because they are the ones with the most incentive to check everything carefully. Same principle here.

1

u/rezakhan0 12h ago

Agreed and perfect examples. I am trying to say, we have this Claude thing that can generate huge amount of code, and we cannot really expedite the process if piles of PRs are waiting there for traditional reviewing. I am not against reviewing carefully, I am against putting together lots of code (tested, verified, and work fine) but they cannot get out the door since review is still slow.

1

u/mooglinux 12h ago

That’s just the price of covering your ass. It’s more important to be diligent than to ship code as fast as possible.

1

u/Narrow-Low-3137 12h ago

You could help out the reviewers be creating smaller, more focused PRs. Manual review is a must.

1

u/lawrencek1992 12h ago

Sounds like you need to break up PRs into the smallest piece of testable and shippable code not a vibe coded monstrosity of thousands and thousands of lines. Claude writes all my code too, but it’s broken up into tiny PRs which are a breeze to review.

1

u/FuggaDucker 12h ago

30+ year lead/dev mgr here.
Even a near-perfect AI (which does not exist) can misinterpret the request or overengineer the result.

Without reading the code, how do you know it is doing what you want and ONLY what you want?
You can't.

1

u/rezakhan0 11h ago

Thanks for the response. Let me put it this way. How can I (I am an experienced developer--I perhaps did not ask the question well) use Claude and expedite the development process. By development here I mean: coding+testing+reviewing+deploying

To me reviewing is the biggest bottleneck. If I want to have Claude generate code, and then I try to inspect every bit of the change (which might be a must), I am delaying the process which can be fine or not. Then a reviewer now that used to get 10 reviews a day is getting 100 a day, which to me means we are probably shipping as slow (or fast) as before. No boost here with Claude. That is the problem I am trying to solve.
We cannot really rely on old code reviewing system by modernizing our coding tools/techniques only.

1

u/FuggaDucker 11h ago

Fair enough! (and well put).
Yes, agreed processes need to change.
For me and my team.. we are flying by the seat of our pants and figuring it out as we go.
I am very fortunate. Every dev on my team is 20+ years of awesome.

1

u/pyrrho314 9h ago

you can use the agent to do what would take 8 classic human hours and review it in a few minutes. Prompt creation in this case also takes only a few minutes. That keeps review simple. If you let the agent do 1 months worth of work, it's going to take a couple days. You lose a lot of acceleration. This is because 5 simple changes are each trivial to check and the time is additive. If those 5 ideas are on PR, that's complexity that makes the review cost exponential (roughly). You have to take smaller bites to keep review trivial.

The overhead of this is the time it takes to devise an architecture where it's possible to compose your system with small changes, and understanding the order those changes should be made. But this is something you have to do if you want performant stable software period.

1

u/warlocktx 11h ago

all of our AI written code goes through our normal PR process, including review by 2 devs. And the dev committing the code accepts responsibility for ensuring it meets our standards.

blindly accepting commits by ANYONE or ANYTHING is just beyond stupid

1

u/rezakhan0 10h ago

well I guess you are responding to some other post. The question is how can we modernize the reviewing system to expedite the process....

1

u/warlocktx 9h ago

its not clear from your post that's what you were asking

high quality code

how do you know this without carefully reviewing it?

with near perfect prompt and context

how do you judge that this is "perfect"?

asks you to explain the code

this is perfectly reasonable. You should understand any code you commit, regardless of who wrote it. Nobody is going to call Claude at 3 in the morning when the production site crashes, they are going to call YOU.

1

u/pvera 14h ago

I don't trust myself, why should I trust you?

Have Claude annotate new work with an explanation in simple technical English. Add a tag so the reviewers can easily search for the notes. Read the notes too, this doesn't excuse you from the Q&A.

1

u/Additional_Path2300 13h ago

You should be able to explain a change in your own words. Asking Claude to explain it and then "agreeing" with the explanation doesn't count.

1

u/pvera 12h ago

Correct. Regardless of the method, the programmer needs to be able to explain the work.

1

u/Big_Gene_3965 14h ago

Perfect prompt hahahahahahahahahahahahahhahahahahahajajajajjajajajajahhahagaga

1

u/atonale 13h ago

Haha, rage bait for "senior developers that used to write code manually and tend to understand everything line by line". Crazy how far we've drifted in a couple of years.

1

u/mr_zerolith 13h ago

It's policy at my company to review all code generated by AI. That's how we don't end up with a slop codebase while using AI.

It's okay to be an 8x engineer instead of a 10x engineer because quality matters enormously for our clients. We work mostly on big and very complex codebases.

1

u/jcdc-flo 13h ago

Anyone still wondering why there have been so many outages lately?

1

u/FudFomo 13h ago

They are just dinosaurs protecting their turf. They will be gone soon enough

1

u/Few-Celebration-2362 13h ago

Who gets fired if the code leaks sensitive data?

1

u/Chance-Strength6060 13h ago

They are senior for a reason, perhaps listen to what they are saying?

1

u/ThisusernameThen 13h ago

LISTEN and learn. if you cant explain 1st time then 2nd time they will dig in more

they're enforcing basic DevSecOps quality gating before unvalidated code hits higher environments. protecting your arse from doing something dumb. protecting the organization from being front page of the local paper for your dumb vibe coded stuff

you might want to look at SHIFT LEFT and ID what is actually means: break your MRs into small, atomic commits you can genuinely defend line-by-line, because if you can't explain it, you don't own it and it doesn't ship.

1

u/Narrow-Low-3137 12h ago

Reviewing code manually is a must. Anyone who says otherwise is crazy. It's that simple. Don't merge code you didn't understand ffs

1

u/Lopsided-Force-9220 12h ago

Everything comes down to 1) Did you solve the right problem, and 2) Is it sufficiently tested? What code are you looking at, exactly? Something like C or Java? Or are you inspecting the machine code the compiler produced? And if you aren't looking at the compiled binaries to be sure you understand them, explain why not.

1

u/Complex_Damage1215 11h ago

Throw it in the slop cannon and hope you don't get any 3am phone calls for a busted system, who cares

1

u/dev_all_the_ops 11h ago

Every line of code that goes into production is a liability for the company. They need to ensure quality.

Its going to take them time to learn to trust the AI.

Maybe you should implement the automated code quality review tool like greptile or code rabbit.

They've been doing this the old way for years, its going to take them a little time to adapt to the new way of coding. Show them how they can trust it.

1

u/purleyboy 14h ago

You think this is gate keeping, but this is actually responsible engineering. Real people get hurt if you roll out sloppy code that has vulnerabilities. Imagine a system that had a vulnerability that exposes thousands of children's health information. You end up in a court case or a government regulatory review, and your defense is that Claude wrote this. You'll be found negligent.

Engineering is not a game, you have genuine responsibilities.

0

u/xomtra 7h ago

The senior developer should get to know your friens Ruff, Pytest, Dependabot, CodeQL, and Trivy:-)