Code Review Practices

Difficulty
Importance

The problem

A single author reviewing their own code misses their own blind spots by definition — a second set of eyes catches bugs, design problems, and unclear code before it merges, and spreads knowledge of the codebase across a team instead of concentrating it in one person.

Why now

Version control with Git established the branch-and-merge structure code review sits inside — a review happens on a pull request, a specific point in the commit DAG, before it's merged into shared history. Coupling and cohesion gave the specific vocabulary reviewers use to judge whether a change is well-structured, not just correct.

Mental model

Code review is a deliberate checkpoint inserted into the merge process from version-control-with-git: a change is proposed as a pull request, a reviewer evaluates it against both correctness and the coupling/cohesion judgment already covered, and only an approved change proceeds to merge — catching problems while they're still cheap to fix, before they're baked into shared history everyone else builds on.

Requires

Used in

Projects

  • Review a real or sample pull request, leaving specific, actionable feedback that distinguishes a must-fix bug from a stylistic preference
  • Write a clear, well-scoped pull request description for a real change, anticipating the questions a reviewer would naturally ask

Examples

  • A reviewer catching a race condition before merge saves the cost of an actual production incident and its investigation
  • A well-written PR description explaining why a change was made, not just what changed, lets a reviewer evaluate the reasoning, not just the diff

Resources

Mastery checklist