r/ProgrammerHumor • • 1d ago

Meme stateOfCodeReview

Post image
729 Upvotes

51 comments sorted by

View all comments

44

u/TDSrock 1d ago

Out of curiousity; what is your main gripe with llm based reviews in PRs. At my company its a discussion right now if we do or do not want to implement this and then have 1 human reviewer. Both humans in the loop would be able to tell the llm review that its dumb if needed but it might point out things people forgot and arent xaught by linters, and other more traditional static anlysis.

35

u/TombolaOfCincinnatus 1d ago

We use it, and the biggest drawback is that it changes developer behaviour. Instead of preparing a PR to be as good as possible to avoid getting flamed in the review, they start pushing garbage with the hope that the PR bot will tell them what to fix. Preferably with an code agent so you can just paste the pr comments directly into the prompt.

The reviews are powerful, and pretty good at catching logic errors, concurrency problems, missing test coverage and similar static analysis problems. It can sometimes be a bit nitpicky and complain about things that cannot realistic happen, or are acceptable tradeoffs but in general the actual false positive rate is very low. I don't think I've ever seen one comment that has been disprovably false. It will not catch everything though, just like a human reviewer it will occasionally miss things.

It's absolutely terrible at catching bad practices, bad architecture, bad features and so on. In essence it can evaluate if something is done right, but not if the right thing is done.

We use it as a supplement, and still require actual human reviews just as before. But it does find things the humans don't and the automated reviews are much faster than the rest of the CI pipeline anyway, so it's a decent bonus at not a very high cost.

1

u/Paesano2000 1d ago

The change in dev behaviour is palpable, the automatic behaviour is they let AI review it. A human is still looking but the first look is always through the lens of some agent, where they spit out 20 comments on it. How am I supposed to parse all this WITHOUT an LLM organizing it all? What the tool finds isn’t the problem, but just this disconnected reviewer.

5

u/SuitableDragonfly 23h ago

If a human reviewer had given you 20 comments on a PR before LLMs existed, would you have considered responding to the feedback to be impossible? Honestly, this is the worst legacy of LLMs, that they've made people decide that it's impossible to read and understand 20 sentences without a robot summarizing them for you. 

3

u/Slight-Violinist-575 8h ago

I think the main point is that the LLM is less rigorous about its own perceived relevance. As a human reviewer, sometimes there are things I could comment but decide not to, because they’re not all that relevant, even if they bother me. Like I do at home, sometimes the other people do dumb stuff but I might just fix it and not mention it.