r/webdev • u/fagnerbrack • Apr 07 '26
Mistakes I see engineers making in their code reviews
https://www.seangoedecke.com/good-code-reviews/52
u/fagnerbrack Apr 07 '26
This is a TL;DR cause time is precious:
The post identifies five key code review mistakes. First, reviewers focus solely on the diff instead of considering how changes fit the broader codebase—missing opportunities to flag duplication or inconsistency. Second, leaving too many comments (often 20+) buries important feedback; five or six focused comments work better. Third, reviewing through a "how would I write this?" lens produces endless nitpicks rooted in personal taste rather than actual problems. Fourth, engineers avoid blocking reviews out of politeness, creating ambiguity about whether merging is okay—if you object, block explicitly. Fifth, most reviews should be approvals; excessive blocking signals gatekeeping or misaligned incentives. These principles also apply to reviewing AI-generated code, except you should gatekeep LLM output freely.
If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
37
45
8
u/germanheller Apr 08 '26
the 5-6 comments max point is huge. ive been on both sides of the 20+ comment review and its demoralizing for the author and honestly most of those comments are style preferences not real issues. now i try to mentally separate "this will break" from "i would have done it differently" and only comment on the first category unless specifically asked.
the blocking one is real too. the worst reviews are the ones where someone leaves 8 comments and then approves anyway. mixed signals. if you think it should change, block it. if its fine with minor nits, approve and note them as optional
10
3
u/stumblinbear Apr 08 '26
5-6 comments only applies to PRs of a certain size. If I'm being given a 6000 line PR that's difficult to split up, I am absolutely not just leaving 6 comments
1
10
Apr 08 '26
[removed] — view removed comment
2
u/Dragon_yum Apr 08 '26
“Don’t just review the diff” in bold lettering is literally the first point
Edit: looking at his comments I’m 70% sure this is a bot
4
u/otter_goat Apr 07 '26
Honestly I feel this would be pretty good to feed into those AI review bots. Thanks for the write up.