Ask questions in review instead of rewriting the patch

A review comment that asks what happens on failure is more useful than a rewritten function. You are there to understand the change, not to retype it in your style.

The least useful review I can leave is a rewritten function in a comment, in my style, without a question. It tells the author I would have typed it differently. It does not tell them whether the change is wrong.

I wrote a broader note about [what I look for in reviews](/journal/what-i-look-for-code-reviews). This is the part I have had to relearn: ask first.

Questions that change the code

The comments that lead to a real fix usually sound like this:

  • What happens if this is null?
  • Does this run after the response is already sent?
  • Is this compatible with the last release, or do we need a two-step migrate?
  • Which test covers the failure path?
  • Did you mean to change this public contract?

Those are not soft. They are specific, and they leave room for an answer I did not think of. Sometimes the author has a reason. Sometimes they do not, and they will change the code because the question made the hole obvious.

A demand like "rewrite this as a reducer" may be right, but it starts an argument about taste unless I can say what is broken: a race, a missed case, a type that lies, a name that will mislead the next reader.

Style is for tools

Formatting, import order, and lint rules belong to the linter and the formatter. If I am leaving a comment about spaces, the hook is unfinished. Human review time is for correctness, clarity, and risk.

If a pattern in the repo already solves the problem, I will point at it. "We handle errors this way in `foo.ts`, can we stay consistent?" is a request with a reason. It is still a question, and the author can explain if this path is genuinely different.

How I want to be reviewed

I would rather get a pointed question than a silent approve, and I would rather get a pointed question than a full rewrite in the comment box. I also try to say when something is good, specifically. "This migration is split the right way" tells the author what to repeat. "LGTM" tells them they can merge.

Review is a conversation about the change. If I catch myself rewriting someone else's patch in my head, I stop and write the question I was avoiding instead.

Back to Journal