r/AIcodingProfessionals • u/rezakhan0 • 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?
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?
9
u/AnnualReview2383 16h ago
Listen to them, they are correct. Of course you should review code
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/mooglinux 12h ago
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/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/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/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/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:-)