Part 0 · 2 chapters · ~12 min
What Review Is For
The purposes of code review in order of value (correctness, design, tests, knowledge sharing, standards), what review is not (a gate for perfection, a place for style wars, a substitute for testing), and what research at Microsoft and Google found reviews actually achieve.
1
Five purposes, ranked
Studies of code review at Microsoft (Bacchelli and Bird, 2013) found that while people expect review to find defects, much of its real value is knowledge transfer, team awareness and better solutions. Google's guidance puts it simply: approve a change once it definitely improves the overall code health, even if it is not perfect.
WHAT REVIEW IS FOR, IN ORDER
spend attention from the top down
swipe the figure sideways, or tap expand for full screen
1/5
correctness
First: does the change do what it says, and is it safe? Money paths, data migrations, auth checks, concurrency, error handling. A bug here costs more than every other category combined.
does it work, and is it safe?money, data, security first
2
What review is not
| review is not | because | instead |
|---|---|---|
| a quest for perfection | every round of nits delays value and teaches people to send fewer PRs | approve when it improves the code; follow up on minor things |
| a formatting debate | machines do it better and without feelings | Prettier, Biome, gofmt, Black, ruff, rubocop in CI |
| the main defence against bugs | reviewers miss most bugs in large diffs | tests, types, static analysis, staged rollouts |
| a place to redesign the feature | too late; costly for everyone | design docs and early conversations for big changes |