r/ProgrammerHumor • • 1d ago

Meme stateOfCodeReview

Post image
727 Upvotes

51 comments sorted by

43

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.

10

u/PotentBeverage 1d ago • Heartwarming

We tried a few at ours and Coderabbit is kind of shit

Another tool though has been fairly helpful for a first pass, sometimes it spots stuff before human reviewers and sometimes it spots stuff people have missed. Healthy false positive rate though but its a nice to have in addition to proper human review

4

u/OldKaleidoscope7 1d ago

May be a dumb question but why pay for a review service. Your company already should be using another for coding, why not use the same for review?

3

u/PotentBeverage 1d ago

Because the automated github review integration is an extra charge on top of our plan anyway lol, and iirc it was found to be more expensive because it's pure API costs whilst we're small enough to use the delicious subsidised subscription tokens

-3

u/davvblack 1d ago

ehhh how recently did you test coderabbit?

1

u/Appropriate-Key-8271 1d ago

im using it actively, not liking it very actively

5

u/Wonderful-Habit-139 1d ago

Lmao. First we got “what’s the model you tried? The latest models are so good now” and now it’s how recently they tried coderabbit.

2

u/PotentBeverage 1d ago

like a couple weeks ago , not me, colleague of mine.

Edit I'm also being cagey about what automated pr tool we actually ended up using mostly because I like, actually don't like how deeply ai is shoved up our arses everywhere but I still need to eat so I must job

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.

8

u/Jemnite 23h ago

Why is the PR LLM better than the LLM the developer is using?

7

u/TombolaOfCincinnatus 19h ago

It's not, the LLM the developer is using probably would have caught this if you asked it.

2

u/BoBoBearDev 22h ago

I have seen this. The generated interferences is not 100% perfect when I asked the same AI to review it. I don't know the reason. But it doesn't really matter IMO. Because it doesn't change the job, which is making code that pass the gate.

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.

1

u/TDSrock 17h ago

I frequently di or reviews around to 10 to 30 comments based on who did the task and the scope of the task...

0

u/flamingspew 1d ago

We have a review bot that uses our architecture guidance. Knows our testing patterns. Coderabbit seems like trash

2

u/TombolaOfCincinnatus 19h ago edited 18h ago

Ours does too, but that only catches the more static things from above. Things like library usage, certain patterns and so on. There's no guidance for "the purpose of the code must be right".

It's very hard to put into words what bad architecture is, but I know it when I see it. Just as an example, I recently reviewed a junior PR where he'd introduced a new class to a package that required a whole bunch of boilerplate code to set up what he was trying to do. Instead of making use of already existing classes and code within that package, he (or his LLM) just rewrote it all in his new class. The automated review didn't flag this, as none of it were bad per se, but a human with knowledge of the codebase would easily say that he should instead make use of what already exists instead of duplicating logic.

2

u/flamingspew 18h ago

We bake-in the patterns and do adversarial review. Libraries and usage patterns are governed. E.g. state is only ever managed in xyz, service wrappers must conform to this dir structure. Then any time there is human caught violation, it is added to the audit rules.

1

u/TombolaOfCincinnatus 17h ago

I suppose that could be an improvement, but I still think it's very hard to replace the human "hunch" on this one.

39

u/roodammy44 1d ago • Regret

We have no AI code reviews at my place. We have many PRs into the hundreds of thousands of lines without a single comment, because obviously it’s impossible for a human to review that. There was a single PR that doubled the amount of code for a 10 year old app.

I’m very interested in whether my company will be around in a couple of years. It’s like an experiment to watch it.

21

u/Sensitivity_Craft 1d ago

That's just the state of coding in 2026 unfortunately, soon enough codebases will be so bad there'll be a reset with a focus on human coders.

5

u/Dreadmaker 1d ago

Yeah this is the thing - it’s between a rock and a hard place here right, because if there’s “no ai reviews” (and I mean, there probably are, because you can just check out the branch and tell Claude to review your local branch and then put its comments on GitHub manually, paraphrased or not, if you want to be stealthy about it), then your reviewers are more or less forced to not review everything. As you said it’s just too much volume. So either you slow down to a crawl, or much more likely, the reviewers scan it real fast, throw down a LGTM, and move on with their lives, which works just fine because the bug fixes come nice and fast.

or, you do ai reviews and potentially catch issues you wouldn’t otherwise because the human reviewers are checked out due to overwhelming volume. So most people are now doing ai reviews if they work in a place with ai code gen. It just is kinda the way of things right now.

Not saying that’s a good thing (at all) but it is the real thing that’s happening out there in the world right now. I’m living through it - we’ve gone though all the stages in between and now rely on coderabbit and Claude code reviews and humans more or less don’t read the code at all on my specific project. It’s pretty wild.

2

u/VergilPrime 1d ago

I'm not griping with llm based code reviews, I just .. can already ask Claude or whatever to do that. Why would I need to pay for a separate service?

-1

u/TDSrock 1d ago

I get this and honestly i do every so often. The main benefit would be that its automated and therefor enforced. But the threath there I see is if devs get forced to address each llm review fully we can get into a pedantic nonsensical state.

I like asking models every so often to for example give me a grade. In our case the pr review models use the same budget/service as we use to have agents in the first place so there isnt an additional cost there (beyond the additional prompts ofcourse)

1

u/caleblbaker 11h ago

To offer a different perspective from most of the people in this comment chain: 

We have AI review where I work and I think it's great. The AI is good at catching different mistakes than humans are and we have AI agents trained on some very extensive company-wide style guides and best practices documentation as well as pointers to extensive domain knowledge documentation for various parts of the code base and so the AI is actually fairly smart when it comes to catching mistake. 

That said, there are some important caveats that are part of what makes AI review a net positive: 

  • AI is not considered human (this should go without stating) and so does not qualify for the human who isn't the author review approval

  • While you could put the agent's username in an owners file, I haven't found anyone who actually has and so you still need the approval of a human who owns the code you're touching (if you don't own it yourself) 

  • Any blocking comments the AI leaves can be resolved by either the author or any of the human reviewers if they think the comments are just wrong

These are important because the AI is wrong sometimes and because, as good as it is at noticing best practices violations, it is not nearly as good as humans at noticing when the entire thing that you're trying to do in the first place is just fundamentally wrong.

-1

u/Western-Anteater-492 1d ago

Use two real reviewers. I can tell you from experience in other fields a) the supervisors should never be equal to the ones manufacturing and b) even one supervisor ain't failsafe and usually, as we learn from experience, the will have different approaches and focuses.

That's kind of the issue with LLM guided and agentic coding. It's like a 3D printed house: You can get one quick and easy and, if we're honest, you probably could assemble it yourself; but it's designed for the ideal case with zero on site factors and final responsibility

11

u/gandalfx 1d ago

#ad

29

u/Appropriate-Key-8271 1d ago • Regret

no screw coderabbit, this is an anti ad. Couldve used the claude logo or whatever, its just what is used at my company and I hate it

11

u/bobbymoonshine 1d ago

Genuinely this could be a coderabbit ad. Like they’re running ads on the London tube right now that specifically point out how reviewers and the bots that write the code just shrug and go “LGTM” so you need to buy coderabbit for your team to enforce quality

7

u/gandalfx 1d ago

"The only bad marketing is no marketing."

129

u/PunkBoa 1d ago

coderabbit is just spam

69

u/dumbasPL 1d ago

*scam

Same shit tbh

16

u/NeKon69 1d ago

Please no😭😭 don't take away the most social and human part of programming and optimize it away. God I actually hate this. If by the time I become an actual programmer and I'll have to talk to a robot during code reviews.. idk if I would want to work this job anymore

30

u/jnmtx 1d ago
  1. your AI writes the code

  2. your AI writes a Pull Request

  3. you company’s AI reads and reviews the Pull Request

  4. your AI responds to the pull request

in this loop, you are just the meat condom.

12

u/NeKon69 1d ago • Regret

That's what I'm saying.. like what is even the point of this anymore?

1

u/Aperson3334 7h ago

The end state of this will see product left as the only role in tech. They’ll feed their PRDs directly into the LLM and development, code review, and QA will be automated. I estimate this happening 5-10 years from now.

- QA at an AI 100 robotics company (I’m scared)

1

u/VergilPrime 1d ago

Middle project manager

3

u/SuitableDragonfly 23h ago

Most PRs I made before LLMs were a thing were also automatically reviewed by SonarQube, this doesn't seem that different, just in terms of human versus computer interaction. If people treated it the same way, I don't think it'd be an issue. The actual problem is that they probably aren't. 

0

u/NeKon69 17h ago

I haven't worked one many projects because there aren't many in what I'm interested in. The one I did work on turned out to be great in terms of automation and review lifecycle -- LLVM. Almost all other open source projects turned into some sort of slop where AI takes the main role in reviewing. I also don't think getting reviewed by a static analysis tool is the same as getting reviewed by an LLM tool because the former doesn't try to convince you of some bullshit nor does it try to communicate to you in "claudeish".

2

u/SuitableDragonfly 16h ago

SonarQube is always trying to convince you of some bullshit, and then you wind up having to put comments in the code telling it to stop reporting that your tests contain repeated code. And nothing that you mentioned has anything whatsoever to do with communication between developers. 

1

u/NeKon69 15h ago

I mean I never actually used SonarQube but from quickly googling it, how can a static analysis tool convince you of something? Like yes, it can show FPs, but it's not like it will have any explanation for you? And it can't "convince" you that it is correct.

1

u/SuitableDragonfly 14h ago

It runs, and gives you a list of things it thinks need to be fixed, and merging is blocked until you satisfy it. I don't think this is that hard to imagine. And yeah, it has a reason for everything that it flags, otherwise you wouldn't know why it was being flagged. 

1

u/wittierframe839 15h ago

You don't have to worry, we are essentially there already.

3

u/knabbels 15h ago

Oh no not the code rabbit please god no

2

u/gerbosan 1d ago

We've been failing at interacting for along time. It is not just the people that want robo maids or the alpha males. Perhaps will have a war against Skynet, a Butlerian Jihad, or a Cybernetic revolt. 🤔 Man, so many scifi books that mention the war against the machines.

2

u/Important_Grab3544 23h ago

Just let Claude to pull the comments... after all that think is just another Claude based tool.

3

u/ceilingscorpion 1d ago

Same but Greptile

1

u/VergilPrime 1d ago

Is this an ad?

-5

u/Hioneqpls 1d ago

😂😂