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

What reviewers look for

A checklist for reading a change.

๐Ÿ“– Key ideas

  1. Correctness first: does the code do what the description says, including edge cases such as empty input, nulls and errors?
  2. Design: is the change in the right place, and is it simpler than it needs to be or more complex?
  3. Readability: clear names, small functions and comments that explain why, not what.
  4. Tests: are the new behaviours and bug fixes covered by tests?
  5. Impact: performance, security, backward compatibility and anything that touches users' data.
๐Ÿ’ก Real-life example: A reviewer is like an examiner with a marking scheme: first check the answer is right, then the method, then the neatness.
Edge caseUnusual input such as empty, very large or missing values
ReadabilityHow easily another person understands the code
Backward compatibilityOld clients and data keep working after the change
RegressionSomething that worked before and is now broken