Nguyen Le Phong

Your Reviewer Is the Code's First Future Reader

Your reviewer is the first person to read the change without your memory of it.

The PR looks small. Four files, green CI, a two-line description that ends with "behavior should be obvious." Your reviewer opens it at 5 p.m. and spends twenty minutes rebuilding the story from a variable called flag2, a retry count of 7 with no explanation, and a test that proves the code runs without saying what it protects.

Nothing in that PR is wrong. It just leans on things that live in the author's head: a Slack thread, a call with the payments team, an incident three people remember. The reviewer is the first person to trip over that. In six months, everyone who touches this code will trip over it too.

The first reader without your memory

We usually picture reviewers as gatekeepers: approve, block, request changes. That part matters. A reviewer is also the first future reader, arriving early. They read the change without your memory of the problem, which is exactly where whoever opens this file next year will be standing.

Google's review guide treats confusion as a finding. If you can't understand the code, it's very likely other developers won't either, and asking for clarity helps those future developers as well (Google: What to look for in a code review). Reading is most of the job, too. A field study that tracked 78 professional developers across seven projects and 3,148 working hours found they spent about 58% of their time on program comprehension (Xia et al., IEEE Transactions on Software Engineering, 2018). The minute a reviewer spends confused today is a preview of those hours later.

Two people sit at a laptop; one points at the screen with a pen while the other follows along.
A good review reads the change on behalf of the teammate who will open it months from now.

Put the answer where the next reader will look

Here's the trap. The reviewer asks "why 7 retries?", the author replies "the partner API rate-limits us at 8 a minute," the reviewer says "makes sense," and the PR merges. The question got answered, and the answer now lives in a review thread nobody will ever find.

Google's guide is direct about this. When you ask a developer to explain code you don't understand, the usual result should be clearer code, and explanations written only in the review tool aren't helpful to future readers (Google: How to write code review comments). So when a question gets a good answer, ask one more: where should this answer live?

  • In a name, if the code can say it. MAX_RETRIES_UNDER_PARTNER_LIMIT says more than 7.
  • In a comment, if it explains why the code exists. Google's guide says comments are most useful when they explain why, and code that can't explain what it does should get simpler.
  • In a test, if it's behavior that would be expensive to break without anyone noticing.
  • In the PR description, if it's about the decision as a whole. Google points out that the description becomes a permanent part of version control history (Google: Writing good CL descriptions).

Ask the questions a future maintainer would ask

Thinking about the next reader changes how review comments sound. You stop hunting for author mistakes and start checking whether the next person can change this code safely. Those comments are easier to write and easier to hear.

Instead of Try
"This is unclear." "Could we name this after the business rule, so someone sees the intent without opening three files?"
"Add tests." "Which behavior here would hurt most if it broke and nobody noticed? Let's lock that one in a test."
"Why is this here?" "If someone wants to delete this branch next year, what should stop them? Can we leave that in a comment?"
"Magic number." "Where does 7 come from? If it's the partner limit, a named constant would save the next person a search."

Same standard, less emotional noise. For wording and comment labels, see how to review code kindly.

Authors can do half the work up front

If you're the author, write the PR as a small time capsule: what changed, why now, which trade-off you accepted and how you checked it. A screenshot, a log line or a before-and-after example takes a lot of guesswork off the reviewer. Pull requests reviewers can approve without guessing covers the author's side in detail.

Then read your own diff the way a stranger would. Any spot where you think "they'll probably ask about this" is a spot to fix before they have to.

One sentence is often enough

None of this means every change needs an essay. Some changes really are mechanical, and some fixes have to ship within the hour. Even then, one sentence can protect the future: "Keeps the old API response while the new client rolls out." "This test locks the retry behavior that failed in production last month." A line of context today saves someone an afternoon of digging through git blame later.

What the team learns

When review works this way, it teaches the team what clear looks like. People split changes smaller because small changes are easier to read. They name trade-offs because unnamed ones turn into next year's confusion. Review starts to feel like looking after a codebase together.

The most useful reviewer is often the one reading on behalf of someone who hasn't joined yet. If a review has ever helped you understand your own decision months later, you've already seen this work.

Try it on your next review

  • When you're confused, say so. It's a finding, and the next reader will probably be confused at the same spot.
  • When the author answers a question in the thread, ask where that answer should live: a name, a comment, a test or the description.
  • Rewrite one "this is unclear" comment as a question about the next person who will change the code.
  • As an author, add one "why" line for the thing you'd forget first.
What did you think?

Frequently asked questions

What does it mean to treat a reviewer as a future reader?
The reviewer reads your change without your memory of the problem, just like whoever opens the file next year. If they get confused, that confusion is a finding: Google's review guide says that if you can't understand the code, other developers probably won't either.
Should explanations go in review comments or in the code?
In the code, a test or the PR description. Google's guide says explanations written only in the code review tool are not helpful to future readers, and that asking for an explanation should usually lead to clearer code.
How much time do developers spend reading code?
A field study by Xia and colleagues, covering 78 professional developers and 3,148 working hours, found about 58% of their time went to program comprehension.
Does every pull request need a long description?
No. Mechanical changes and urgent fixes can get by with one sentence, as long as it records the context a future reader would otherwise have to dig for.