Also known as 5-Level Code Review · Pair-Review Workflow · Weighted 'No Code Review Merge' Limit
The essentials
Sheet 1/4
What it is
What it solves
How do you catch defects and poor design that the author cannot see, and keep a team's knowledge of the codebase shared, before changes reach production?
When to use it
Use it on every change to shared or production code, especially security-sensitive, safety-critical or complex modules, and as a mentoring channel for new team members.
Where it comes from
Michael Fagan published 'Design and code inspections to reduce errors in program development' in the IBM Systems Journal in 1976, describing a formal process with planning, overview, preparation, an inspection meeting, rework and follow-up. Peer review of code existed informally before, so 1976 marks the first formally described process. Lightweight, change-based review spread with version control tools, and Bacchelli and Bird's 2013 study at Microsoft helped define 'modern code review'.
Michael Fagan · 1976
Sheet 2/4
How it works
Authors are blind to their own assumptions. A reviewer reads the change with fresh eyes and a different mental model, so mismatches between intent and code surface. Formal inspection makes this rigorous with roles, checklists and defect logging. Modern review makes it cheap and routine: every change is small, reviewed in a tool, and blocked from merging until approved. Effectiveness drops when reviewers go too fast or changes are too large, so reviews work best on small diffs read at a moderate pace. Beyond defects, the review conversation spreads conventions and design knowledge across the team.
You need
A small, self-contained change with a description, the relevant context or ticket, automated test and static-analysis results, and one or more reviewers with knowledge of the area.
You get
Comments and requested changes, an approve or reject decision, fixed defects, and a record of the discussion.
Sheet 3/4
Case
Illustrative case
Hearthware, a fictional smart-thermostat maker, finds that 30% of firmware pull requests exceed 800 changed lines and wait 3 days for review. It sets a soft limit of 400 lines, adds a checklist for memory and concurrency issues, and asks reviewers to respond within 1 working day. Over two quarters, median review time falls to 6 hours and escaped concurrency defects drop from 7 to 2. Most review comments still concern naming and structure, which the team accepts as a maintainability gain.
A fictional company used to explain the model.
Sheet 4/4
Caution
When to avoid it
Do not rely on it as the main way to find functional bugs; tests and static analysis are better for that.
Formal inspection is too heavy for throwaway prototypes.
Mandatory review on trivial changes can slow flow if turnaround is slow.
Common mistakes
Submitting very large changes that reviewers skim.
Treating review as gatekeeping or personal critique.
Spending review time on style issues a linter could catch.
Letting reviews sit for days.
Assuming an approval means the code is bug-free.
Known weaknesses
Finds fewer functional bugs than teams often expect.
Slow turnaround can become a delivery bottleneck.
Effectiveness drops sharply on large changes.
Can become adversarial without good norms.
How to apply it in 6 steps
How to apply it
Code Review (software inspection and modern code review)
6 steps
01of 6
Step 1 of 6: Prepare a small change
The author keeps the change focused and writes a description of intent and testing.
01
02of 6
Step 2 of 6: Run automated checks
Tests, linters and static analysis run first so humans focus on design and logic.
02
03of 6
Step 3 of 6: Assign reviewers
Pick one or two people who know the area, plus a learner when useful.
03
04of 6
Step 4 of 6: Review the change
Reviewers read for correctness, design, readability and risk, at a pace that allows real understanding.
04
05of 6
Step 5 of 6: Discuss and revise
The author answers comments and updates the change until concerns are resolved.
05
06of 6
Step 6 of 6: Approve and merge
The change is approved, merged and, for inspections, defect data is recorded.
06
Click to unfold
Use the arrow keys to move between steps, Home and End for the first and last, and Enter to fold or unfold the booklet.
View all 6 steps
01
Prepare a small change
The author keeps the change focused and writes a description of intent and testing.
02
Run automated checks
Tests, linters and static analysis run first so humans focus on design and logic.
03
Assign reviewers
Pick one or two people who know the area, plus a learner when useful.
04
Review the change
Reviewers read for correctness, design, readability and risk, at a pace that allows real understanding.
05
Discuss and revise
The author answers comments and updates the change until concerns are resolved.
06
Approve and merge
The change is approved, merged and, for inspections, defect data is recorded.
Which decisions it helps with
Decision profile
A phased process to take action on processes and operations.
Keyboard: Tab to the sheet, use the arrows to explore the assessments and their questions, and press Escape to close the note.
IIdentity
Type of tool
Phased processvery likely
The questionWhat kind of tool is it?Assessment · Phased process · 94 %
Decision stage
Plan the work, roles and deadlinespossible
The questionWhat stage of the decision are you at?Assessment · Plan the work, roles and deadlines · 34 %
What it applies to
Processes and operationsvery likely
The questionWhat is the decision about?Assessment · Processes and operations · 97 %
Discipline
Agile and software developmentvery likely
The questionWhich discipline does it come from?Assessment · Agile and software development · 99 %
What it produces
A sequence of phases completed in ordervery likely
The questionWhat kind of tool is it?Assessment · A sequence of phases completed in order · 94 %
IIIResources required
TimeOne session (half a day or a full day)The questionHow much time can you spend on this?Assessment · One session (half a day or a full day) · confidence 65 %
PeopleA small group (2 to 8)The questionHow many people will take part?Assessment · A small group (2 to 8) · confidence 86 %
DataA few readily available factsThe questionWhat data do you have available?Assessment · A few readily available facts · confidence 55 %
ExpertiseAnyone who has read a page of instructionsThe questionDoes anyone have experience with methods like these?Assessment · Anyone who has read a page of instructions · confidence 70 %
Time horizonDays or weeksThe questionHow far ahead do you need to plan?Assessment · Days or weeks · confidence 99 %
ScopeOne teamThe questionWho will this decision affect?Assessment · One team · confidence 60 %
FrequencyA regular practiceThe questionIs this a one-off decision or something you expect to repeat?Assessment · A regular practice · confidence 80 %
The team’s own knowledge is enoughThe questionCan you speak to customers, users or people outside your organisation?Assessment · The team’s own knowledge is enough
IITen axes
The dot shows which end the model favours. A hollow dot means no clear preference.
DirectionExecutionThe questionAre you setting direction or improving day-to-day operations?Assessment · Execution · confidence 98 %
Top-downBottom-upThe questionShould leadership set the direction, or should the answer come from the people doing the work?Assessment · Mostly bottom-up · confidence 57 %
PeopleProcessesThe questionIs this mainly a people problem or a process problem?Assessment · Mostly processes · confidence 88 %
Generate optionsNarrow down optionsThe questionDo you need to generate more options or narrow them down?Assessment · Mostly narrow down options · confidence 72 %
Step-by-step analysisIntuition and experienceThe questionWould you rather work through the evidence step by step or draw on the group’s experience?Assessment · Mostly analysis · confidence 82 %
A strict sequence of stepsA flexible frameworkThe questionWould you prefer a precise set of steps or a framework you can adapt?Assessment · Mostly a flexible framework · confidence 64 %
Protect what we haveTake a riskThe questionDo you need to protect what you have or take a chance on something new?Assessment · Protect what we have · confidence 74 %
Improve what we haveFundamental changeThe questionDo you want to improve what you have or change it fundamentally?Assessment · Improve what we have · confidence 64 %
Inside the organisationOutside the organisationThe questionWhere do you expect to find the answer, inside your organisation or in the market?Assessment · Inside the organisation · confidence 98 %
Understand firstmixedAct nowThe questionDo you need to understand the situation first or act now and learn as you go?Assessment · no clear preference (probability is spread across several levels)
IVUseful when
We may be fooling ourselvesThe questionWhich of these situations sounds familiar?Assessment · a situation I face → useful · 83 %
Applicable traits
How it supports actionDecide what comes firstThe questionWhat do you need in order to act?Assessment · Decide what comes first · 91 %
How was this profile calculated?
An automated system reads each model card and answers the same questions for every model. This profile has answers for 77 of 77. No answers are entered by hand.
A very high probability counts as “yes” and a very low one as “no”. Intermediate answers are hidden.
On the axes, mixed means the model favours neither end.
Bacchelli, A. and Bird, C. (2013). Expectations, outcomes, and challenges of modern code review. 35th International Conference on Software Engineering (ICSE 2013), 712-721.Study at Microsoft showing that developers expect reviews to find defects but that knowledge transfer and awareness are major outcomes. Crossref confirms title, authors, ICSE 2013, pp. 712-721.View source: Expectations, outcomes, and challenges of modern code review (opens in a new tab) ↗
Sadowski, C., Soderberg, E., Church, L., Sipko, M. and Bacchelli, A. (2018). Modern code review: a case study at Google. Proceedings of the 40th International Conference on Software Engineering: Software Engineering in Practice, 181-190.Large-scale description of lightweight review at Google. Crossref record shows main title 'Modern code review', authors Sadowski, Soderberg, Church, Sipko, Bacchelli, ICSE-SEIP 2018, pp. 181-190; the subtitle 'a case study at Google' is as cited on Wikipedia.View source: Modern code review: a case study at Google (opens in a new tab) ↗
Critique
Bosu, A., Greiler, M. and Bird, C. (2015). Characteristics of Useful Code Reviews: An Empirical Study at Microsoft. 2015 IEEE/ACM 12th Working Conference on Mining Software Repositories.Analyses which review comments developers find useful, showing that many comments do not lead to changes. Crossref confirms title, three authors, MSR 2015.View source: Characteristics of Useful Code Reviews: An Empirical Study at Microsoft (opens in a new tab) ↗