by skydhash · 1w ago · 0 comments
They're basically the lords of their subsystems. If something does not fit the project's vision and their own standard, it's unlikely to get merged. Imagine if you had the authority to dismiss PRs the same way and send the author back to the drawing board? But that's unlikely to happen as you'll be seen as a "bottleneck" by your managers.
The acceptance for wasting work, or hurting someone's ego was always much lower than the acceptance for bad code that does the job right.
Now I can just say "Let's try doing this in two other ways, and pick the best, because this has such and such drawbacks". And it's so nice that this isn't a) causing a massive amount of extra work b) hurting someone's ego. So it's accepted.
So that's why I'm cautiously optimistic that LLMs and very superficial reviews can still be beneficial to quality. We just didn't reject/rewrite PRs before, now we do.
I would guess you work for a larger company. My experience is more that someone had an idea or got a short description of a problem and then went off and asked Claude to help write the spec before letting Claude implement that spec. The code is starting to be good but often it is way to much code and some times for bugs it is fixing the symptom not the underlying problem. I have several times rejected PRs with, this isn't fixing the actual problem or instead of these 400 lines you could change that one parameter to the existing function and get a better result.
/end rant and back to another day with code review of AI code
While writing my last comment, I was imagining a situation like former - colleague puts up 20K LOC across 50 PRs, you reject wholesale - not a small, self-contained PR.
I'm surprised that at your company, sending someone back to the drawing board for a 400 LOC PR is a big deal. Especially if you're heavy AI users, each person is probably shipping at least a dozen of those a day, and rewriting is cheaper than it's ever been.
> I have several times rejected PRs with, this isn't fixing the actual problem or instead of these 400 lines you could change that one parameter to the existing function and get a better result.
Me too, but this normally costs me very little time - oftentimes the PR description alone clues me in, if not a key file or two.
It can because to actually write the code, you need to be good at formal logic and attuned to the sequential nature of the machine. Some people are good at it intuitively. Some brings it over from some other domain. But some people have a lot of difficulty grasping such abstraction. They know the elements, they just can't order them in a logical manner. That's why you often see horrible code (the long function, the god class, magic number) and copy-pasted snippets all over the place. The computer don't care (they made it work somehow), but it's unmaintainable code.
That's where the horror stories comes from. The software works, you can see the design from the user point of view, the database is ok, everything in the middle is spaghetti. And the cost of maintenance just keeps growing.
I tend to find it does not. Partly steered by by agents.md, partly by the surrounding context of a clean codebase I suppose.
I think that why everyone agrees that taste matters. Because taste implies judgement and knowledge about what’s good. It’s a self correcting mechanism. But people that won’t judge their output and/or don’t strive to do a good job is a recipe for sloppy work.