Confidence-Gauged Code Review
Treat review as apprenticeship and spend it where confidence and criticality are low
- Difficulty
- Easy
- Time to result
- ~weeks to results
- Steps
- 5
- Confidence
- 65%
Rather than making review mandatory or optional as a blanket rule, this treats it as a spend decision driven by two dials: the author's familiarity with the code, and the criticality of the change. Someone new to a codebase should always get a review; someone five years deep making a small change may not need one. A review always has the opportunity to find something, but that possibility does not justify the process cost when the risk is low. The second half of the model reframes what review is for. Because it operates on actual work rather than abstract principles, review functions as apprenticeship: lessons land as specific lines and characters rather than high-minded concepts about cohesion. Review also runs upward, with newer people questioning senior work and forcing implicit assumptions to be spelled out.
Origin
Extracted from REWORK, where David Heinemeier Hansson answers a listener question about why the book frames code review as optional.
Core principles
- 01Skilled people have a usable internal gauge of whether work is good.
- 02Process should scale with criticality, not be applied uniformly.
- 03A review that could find something is not automatically worth its cost.
- 04Review teaches in both directions, junior to senior included.
- 05Concrete lessons on real lines of code beat abstract principles.
How to run it
- 1
Rate familiarity
Establish how well the author knows this codebase. Newness is the strongest single trigger for requiring review.
Pro tip New to the code beats senior in general; tenure elsewhere does not transfer.
- 2
Rate criticality
Judge what happens if this change is wrong. Low-criticality work can often ship on the author's own confidence gauge.
Pro tip If the cost of a mistake is a quick fix, the risk of shipping unreviewed is often correct to take.
Watch out A review that could find something is not the same as a review that is worth it.
- 3
Decide the spend
Skip review only where familiarity is high and criticality is low; require it everywhere else, especially for newcomers.
- 4
Review as apprenticeship
When reviewing, point at the specific line or character that could be different and explain why, rather than teaching abstract principles.
Pro tip Run reviews in both directions so junior questions force senior assumptions into the open.
- 5
Retire the lesson
Once someone has internalised a pattern across a few reviews, stop reviewing that part of their work and move the attention elsewhere.
Pro tip A handful of concentrated reviews can visibly move someone a level.
In the wild
Hansson describes working with programmers at Basecamp where a short concentrated run of code reviews, around five with one person, visibly changed their level. Because the lessons attached to real lines of their own work rather than to abstract notions, they landed directly. Once a pattern was understood, that part stopped needing review.
→ Measurable skill jump from a handful of reviews, with review effort then redirected elsewhere.
On the design side the same apprenticeship logic is applied through shared review sessions, such as an hour spent working through a revamped Basecamp invitation flow: riffing on wording, asking what a phrase means, whether steps can be condensed, and what distinguishes one option from another. Fried's takeaway was that this process is worth showing publicly because the real work is messy and instructive.
→ Design decisions get made in the open and become teachable material for the team and the public.
Common mistakes
Mandating review uniformly
Applying full process to low-criticality changes by experienced authors spends time without buying meaningful risk reduction.
Treating review as seniority policing
Framing review as the senior person checking the junior one loses its best use, which is junior questions forcing implicit assumptions to be explained.
Is it for you?
Best for
Small engineering teams that trust their people and want mentoring throughput rather than gate-keeping.
Not ideal for
Regulated or safety-critical environments where mandatory review is an external compliance requirement.
From the transcript
“my barometer is that skilled people have a good internal gauge for confidence”
“If you're new and you don't know your way around a code base, for example, you should absolutely get a code review.”
“this is apprenticeship forms of mentoring, not conceptual forms of mentoring”
From the episode
Illusions of Agreement