r/TechLeader • • 2d ago

Code reviewing

I asked a question about reviewing before, I am trying to ask it differently this time to analyze the bottleneck better. I myself am a developer and I appreciate the code reviewing and manual inspection and testing/verifications.

So with all the AI tooling that helps you write code much faster, how can we really expedite our shipping?

I mean we know that the prompt and context is coming from me. So I can make mistakes and AI can later make mistakes in transforming my prompt into code.

Now if we develop code so fast with Claude, we write the tests with it, then we verify manually, and we self-review to better understand the generated code. We cannot still ship faster than before, since piles of PRs/MRs are accumulated there for review, and we heavily (and correctly) rely on senior ones to review before you get the confidence level to push.
I am not saying reviewing is not critical and I am not saying no human in the loop.

The question is how to expedite shipping here?

How can you help a senior dev to review your stuffs faster, so you ship faster. The question is not to remove the review off the table here

5 Upvotes

15 comments sorted by

2

u/Jaded-Armadillo8348 2d ago

most of the replies suggest adding yet more cognitive load on the reviewer lol

theres no simple answer, you either start trusting ai to also code review and move humans to an upper layer where you skim the diff and validate empirically or you will keep facing the bottleneck

personally i still believe thay you should code review critical prs (and a sample of non critical from time to time), to tweak and fine tune your automated review pipeline.

yes, you are going to have bugs, just like we did before ai.

i also believe that the point to where you trust the automated review has to depend on the criticality of the code you are writing. i dont care if no one reviews the PRs of your landing page, but i absolutely care if no one is reviewing medical equipment sw

1

u/rezakhan0 2d ago

Yeah good examples. All I am trying to say is with Claude and quick code development (I don't call it software engineering, I just call it coding), we need to polish our processes. We cannot rely on Claude for coding, but only humans for reviewing, since the speed do not match and we get stuck.

2

u/th3w1zard1 1d ago

Perhaps the simplest answer is to learn from experience.

The problem is that very few people have that experience yet.

4

u/stagedgames 2d ago

read the comments in your previous post and address the cognitive dissonance that is occurring when you're reading things you don't like to see. You can't move faster than people can understand and process information.

3

u/DenverTechGuru 2d ago

Unless you cut people out. Which has its own downside/upside trade off.

1

u/th3w1zard1 1d ago

You definitely can if the information is made more accessible and presented in a way that facilitates faster comprehension.

3

u/SadBookkeeper6220 2d ago

You need to make the avalanche of information palatable. Smaller reviews are more successful than large ones. Build contracts and APIs into the design. As the design becomes modular, your HITL reviews go faster AND the context for your AI is reduced.

Preemptively explain the solution and its implementation - you said perfect context so doesn’t all this need to be in a readable knowledge base anyway?

Show that you’ve done the work to bulletproof your code. Unit test results, static analysis, adversarial design checks, adversarial checks of your UT, automated independent functional verification. If you show your seniors that you are even more paranoid about AI than they are, it builds trust.

1

u/th3w1zard1 1d ago

How do you account for the possibility that unnecessary complexity is making the information more difficult to digest, though?

2

u/SadBookkeeper6220 1d ago

I review my generated code myself, and cull the bullshit when I find it. Others get to review when I’m satisfied. I can’t say I’m successful catching it all, but that’s the point of reviews.

I suppose if I was trying to be clever I’d run a code coverage analysis of the result, but I use that more for UT validation.

2

u/That-Promotion-1456 2d ago

Develop API first, strong separation of frontend and backend. Test API endpoints thoroughly using AI, using separate testing project (all you get is openapi reference). This way you are treating your software as a black box and can do unbiased and unfixable tests. Test for performance. Assumption is that if you cover your API testing with generous amount of tests you do not care what happens within the code (as you have tested both for logic and performance). AI is known to cheat (more or less) on unit tests/integration tests, which still need to be there (TDD first), but only separate outside test will confirm it really works as it shoud.

2

u/th3w1zard1 1d ago

Shipping faster alone isn’t the goal you think it is.

1

u/EleventhBorn 2d ago

Startups that believe they are in a race are using bots from Grok Build (previously known as Cursor), CodeRabbit (or other similar code review agents) to auto-approve PRs.

- I felt this is the only concrete thing that can make shipping faster (assuming the software is generic enough for agents to not make mistakes, or you can tolerate mistakes)

The other approach I've seen is - a company built a contraption that would set the reviewer a deadline, say 2 hours for them to complete the review from the moment it is assigned to them. If they don't review it within that time, they'll get pinged in Slack via automated messages and other visual aids.

While you are waiting for the review, pick another task and set your agents on them #win

--

If senior engineer insists on code reviews and you strongly feel that is unnecessary or affecting your performance - raise it with your boss.

1

u/notnew2bay 2d ago

So with all the AI tooling that helps you write code much faster, how can we really expedite our shipping?

by stopping reviewing and moving that time in defining plans and tests for everything you deem important (including behavior under load and SLA compliance when relevant). If code meets requirement, generation followed general rules set up for the agents and all tests, including e2e tests, pass, then it is good enough.

1

u/Bomaruto 2d ago

Code review is quicker if there is nothing to comment on and nothing looks weird enough to warrant extra investigation. So if you want your code review to be quicker you need to learn from previous feedback and apply it to new code that you produce.

1

u/mooglinux 2d ago

Good-quality code is easier to review, so make the quality as good as you can. But the bottleneck is what it is and trying to get around that isn’t wise.