tech, developers, and the code underneath

issue 253· essay·

What I look for in a pull request

Correctness is table stakes. The reviews that improve a codebase ask different questions.

Reviewing for bugs is the easy part, and increasingly the part tools do well. A review that only checks correctness leaves most of its value on the table.

Here is the order I read in, and why.

first: the description#

Before the diff. If the description does not say what problem this solves and why this approach, I ask for that first and stop reading.

This is not process theatre. A change whose author cannot explain the problem in three sentences is a change I cannot evaluate, and a description that only restates the diff ("adds a field to the user table") tells me nothing about whether the field should exist.

second: the shape#

I read the file list before any code. It tells me a lot:

  • One file changed in a feature PR — probably missing tests, or the change is narrower than the title claims.
  • Forty files changed — probably two changes wearing a trenchcoat. Ask for a split, especially if one of them is a rename or a reformat.
  • A test file with no source file — good, someone found a gap.
  • A source file with no test file — the first question.
  • Something in a directory unrelated to the title — the most interesting file in the PR. Read that one first.

third: the interface, not the implementation#

Implementations get rewritten. Interfaces persist, because other code binds to them.

So I spend the most attention on the smallest amount of code: public function signatures, the type of the thing returned, the shape of an API response, a database column, an event payload. Getting these wrong is expensive to fix later in a way that a clumsy loop body never is.

Questions I ask here:

  • Can this be called in a wrong order? Can it be called twice safely?
  • What does it do on failure — throw, return a sentinel, return a result type? Is that consistent with its neighbours?
  • Is anything nullable that should not be? Nullability in an interface propagates outward forever.
  • If this is persisted or transmitted, how does it change next year? Adding a field is easy; changing the meaning of one is not.

fourth: the failure paths#

The happy path is usually right, because the author ran it. I read the branches the author probably did not run:

  • What happens if this network call times out mid-way?
  • What happens if this runs twice — a retry, a duplicate message, a double click?
  • What happens with zero items? With one? With a hundred thousand?
  • What happens if this is deployed while the old version is still running? For a few minutes, both are.

That last one catches more real production problems than any other question on this list, and almost nobody asks it.

fifth: what is missing#

The hardest thing to review is code that is not there.

  • No new metric or log line for a new failure mode.
  • No migration for a schema change, or a migration that is not reversible.
  • No feature flag on something risky.
  • No update to the runbook that describes the thing being changed.
  • No deletion — a change that adds a new way to do something without removing the old way leaves two ways, forever.

what I do not comment on#

Formatting, naming that is merely not-my-preference, and anything a tool could enforce. If it matters, it goes in the linter. If it is not in the linter, it is an opinion, and opinions in review comments cost more than they return.

I also try not to redesign in review. If I think the whole approach is wrong, that is a conversation, not a thread of comments — and it is a signal that the design discussion should have happened before the code was written.

the tone thing, briefly#

"Why did you do it this way?" reads as an accusation in text even when it is sincere curiosity. "What made you choose X over Y? I would have reached for Y and I might be missing something" costs eight extra words and gets a better answer.

Prefix anything non-blocking. nit:, question:, optional:. Reviewers underestimate how much authority their comments carry; an unlabelled remark is read as a change request. Labels let people ignore you correctly.

— Dom, November 27, 2026

get README in your inbox

One dispatch, no noise. Tech and developer news, plus the occasional long piece on the craft.

subscribe →