Reviewing Someone Else's Code Without Wasting Everyone's Time
A review that arrives late, nitpicks spacing and misses the broken retry loop costs more than it saves. Reading a change in the right order, and being clear about which comments block, is most of the skill.
What review is actually for
Code review is the practice of having someone other than the author examine a change before it lands. Teams adopt it for several different reasons, and it is worth being honest about which one applies to you, because the reasons pull in different directions.
Finding defects is the obvious motive, and review does find some, though rarely the subtle ones a test would catch better. The more durable benefits are quieter: a second person now knows this part of the system, the change arrives with its reasoning written down, and conventions spread without anyone having to maintain a style guide. The bus factor of a project, meaning how many people could leave before it stalls, improves through review far more reliably than through documentation nobody reads.
Start with the description, not the diff
Read what the change is meant to do before you read a single line of it. If you cannot work that out, that is your first comment, and a legitimate one: a change nobody can describe is a change nobody can review. Ask what problem it solves and how the author knows it works.
Then look at the size. A small change gets read; a large one gets skimmed, approved and regretted. If one change does three unrelated things, asking for it to be split is often the most useful thing you can say, and it is much cheaper for the author to hear that before thirty line comments exist than after.
Read in a useful order
- The tests, to see what behaviour the author believes they have changed.
- The public surface: function signatures, routes, schemas, configuration, anything other code depends on.
- The implementation, now that you know what it is supposed to do.
- The code that was not changed, asking whether it should have been.
That last step catches the most. A new code path added beside an old one that still runs, a constant copied instead of reused, a caller left passing the old argument: none of those appear as a suspicious line in the diff, because the problem is what the diff is missing.
What to look hard at
- Boundaries: empty input, exactly one item, the maximum, and one past it.
- Failure paths: what happens when the call errors or times out, not only when it succeeds.
- Anything touching money, dates, time zones, units or user identity.
- Whether a failure in production would be visible or silent.
Spacing, quote style and naming conventions do not belong on this list. Hand those to a formatter and a linter so that human review time goes to the judgements a machine cannot make.
Say which comments block
Most of the friction in review comes from ambiguity about whether a comment has to be acted on. The author cannot tell a hard objection from a passing thought, so they either argue with everything or ignore everything. Label each comment instead:
blocking: this retries on a 400, which can never succeed suggestion: a named constant would read better than 86400 here note: unrelated, but the helper above looks unused now
Give the reason alongside the request, because a reason can be discussed and a verdict can only be obeyed or resisted. Where you are unsure, ask rather than assert: "what happens if this list is empty?" costs you nothing if the answer is fine, and finds the bug if it is not. And keep the count honest. Twenty comments of equal weight communicate nothing about priority; two blocking ones communicate a great deal.
On the other side of it
As the author, most of your influence over review quality is spent before anyone else looks. Keep the change small and single-purpose, describe what it does and why, and read your own diff first. Self-review catches the debug print, the stray rename and the file you did not mean to commit, and it costs a reviewer's goodwill to skip.
Then reply to every comment, including the ones you disagree with. Saying "I left this as it is, because the caller already validates that" is a complete and acceptable answer. Marking a thread resolved without changing anything or explaining why is the fastest way to lose a reviewer's attention for good.
What review cannot do
Review is a filter near the end of the pipeline, not a design process. If a change is the wrong shape, that conversation needed to happen before the code existed, and no amount of line-by-line commentary will recover it; the kind thing to do is say so plainly and early rather than approving something you expect to be rewritten.
It also will not repay technical debt already in the codebase. Review slows the rate at which new debt arrives, which is valuable, but a reviewer who blocks a two-line fix until the surrounding module is rewritten has stopped reviewing the change in front of them. Note the problem, let the fix through, and schedule the rewrite as its own piece of work.
last updated 2026-11-27