โ† Code Review learning path
Code Review ยท Module 1 of 8

Why code review matters

What a review is for and what it is not for.

๐Ÿ“– Key ideas

  1. A code review is a second person reading a change before it is merged into the main branch.
  2. Reviews catch bugs early, when fixing them is cheapest, before users ever see them.
  3. They spread knowledge: at least two people now understand every part of the code.
  4. They keep the codebase consistent in style, structure and naming.
  5. A review checks the code, never the person who wrote it.
๐Ÿ’ก Real-life example: A review is like a second engineer checking a bridge drawing before construction starts: an error found on paper costs an eraser; found after building, it costs the bridge.
Pull requestA proposed change waiting to be reviewed and merged
ReviewerPerson who reads and comments on the change
AuthorPerson who wrote the change
MergeAdding the approved change to the main branch