Skip to content

Lesson 6 of 9 · 23m

Review Iteration Without Churn

Respond to review comments with judgment, separate misunderstanding from real defects, revise cleanly, and know when a PR should be abandoned.

Code review is not a test of personal worth. It is a distributed design process conducted in fragments. The contributors maintainers trust are not the ones who accept every suggestion instantly; they are the ones who can distinguish a defect, a preference, a misunderstanding, and a project constraint — then respond proportionally.

Triage comments before editing

Read all feedback before touching the branch. Classify it privately:

correctness       behavior is wrong or incomplete
compatibility     public contract, migration, or consumer risk
clarity           names, comments, structure, reviewer comprehension
preference        maintainer taste or local convention
question          reviewer lacks context or wants evidence
scope             request belongs in follow-up, not this PR

This prevents the worst iteration pattern: fixing the first comment immediately, pushing, then discovering the third comment invalidates the first fix.

Respond to the concern, not just the literal suggestion

A maintainer may say "rename this to membership" when the deeper concern is that invite and membership states are being conflated. Renaming alone may not solve anything. Answer with the reasoning and the resulting change:

Good catch — the helper was mixing pending invitations with active
memberships. I split `revokePendingInvites` from `removeMembership` and
added a regression test for the accepted-invite path.

Sometimes the correct response is disagreement, supported by evidence: "I kept expiry in the service because the worker path never touches the HTTP controller." That is not defensiveness. It is design memory.

Make review rounds smaller, not bigger

Push focused commits that correspond to feedback, unless the project prefers amended history. Do not sneak unrelated improvements into a review round. When you are done, say what changed and what remains open. A concise recap saves reviewers from diff archaeology:

Round 2: split membership removal from invite revocation, added negative
test for cross-workspace invites, removed transaction wrapper from read
path. Still open: whether legacy rows need lazy revocation.

Recognize the three endings

Not every PR should merge. A contribution can end in:

merge       the behavior and maintenance cost fit the project
close       the design does not fit, or maintainer bandwidth is unavailable
park        the idea has merit but needs upstream design or product context

Closing your own PR after a clear architectural no is maturity, not defeat. Preserving the branch and linking the discussion can still help the next person.

Field notes

  • Do not mark conversations resolved without responding unless the fix is obvious and the project culture expects it.
  • A reviewer missing context is often a signal that names or tests failed to explain intent.
  • Never argue that correctness is unnecessary because the bug is rare. Rare and catastrophic are compatible.
  • If reviews conflict with each other, ask which project constraint should win instead of implementing both badly.

Was this lesson helpful?

Sign in to rate