Also known as Buddy Code Rotation · Empathy Pair Programming · Hero-Helper Pairing · Quick Switch Pairing · Split-Level Pairing · Weighted Remote Pair Programming Ladder · and 1 more
The essentials
Sheet 1/4
What it is
What it solves
How do you catch design and coding mistakes while they are being made, and spread knowledge of a codebase so it does not live in one head?
When to use it
Use it for complex or unfamiliar code, risky changes, onboarding new team members, spreading knowledge of critical modules, and hard debugging sessions.
Where it comes from
Programmers worked in pairs before XP, so there is no single inventor. Kent Beck's team paired on the Chrysler payroll project from 1996, and Beck made pairing a core practice in Extreme Programming Explained (1999). Laurie Williams, Robert Kessler and colleagues then published experiments and the 2002 book Pair Programming Illuminated. The 1999 year marks popularisation, not invention.
Kent Beck, Laurie Williams and Robert Kessler · 1999
Sheet 2/4
How it works
Pairing splits attention between two levels. The driver focuses on the line being written; the navigator, free of the keyboard, holds the bigger picture: the design, the next test, the edge case. Continuous review finds defects seconds after they are introduced, when they are cheapest to fix. Talking through choices forces reasoning to be explicit, which tends to produce simpler designs. Rotating partners spreads knowledge of the code and conventions across the team, reducing dependency on single experts. The cost is two people on one task, so the gain depends on task difficulty and pair composition.
You need
Two developers, a shared workstation or screen-sharing tool, a well-defined task, and an agreement on role switching.
You get
Code reviewed as it is written, shared understanding of the change, and fewer defects reaching later review and testing.
Sheet 3/4
Case
Illustrative case
Quayside Bank's fictional mobile team must rewrite its card-freeze feature, touching a fraud service only one senior engineer knows. For three weeks she pairs with two colleagues in rotation, swapping driver and navigator every 25 minutes. The feature ships with 3 defects found in test, against a team average of 9 for changes of similar size. Afterwards, two more engineers can change the fraud service, and on-call escalations to the senior engineer drop from 6 to 2 per month.
A fictional company used to explain the model.
Sheet 4/4
Caution
When to avoid it
Avoid it for routine, well-understood tasks where a second person adds little, when the two people are both novices without support, or when it is imposed for whole days without breaks and causes fatigue.
Common mistakes
Letting one person drive all session while the other watches passively.
Pairing an expert with a novice without making the novice drive.
Pairing all day without breaks.
Using pairing as a substitute for tests.
Measuring only lines of code per person and calling pairing wasteful.
Known weaknesses
Costs more person-hours, especially on simple tasks.
Benefits vary with expertise and task complexity.
Can be tiring and socially demanding.
Research evidence is mixed and shows signs of publication bias.
How to apply it in 6 steps
How to apply it
Pair Programming
6 steps
01of 6
Step 1 of 6: Pick a suitable task
Choose work that is complex, risky or unfamiliar enough to benefit from two minds.
01
02of 6
Step 2 of 6: Agree roles and rhythm
Decide who drives first and set a switching interval, for example every 25 minutes or every passing test.
02
03of 6
Step 3 of 6: Drive and navigate
The driver writes code and explains intent; the navigator reviews, asks questions and tracks the plan.
03
04of 6
Step 4 of 6: Switch roles
Swap at the agreed interval so both stay engaged and both touch the code.
04
05of 6
Step 5 of 6: Rotate partners
Change pairs across days or stories to spread knowledge across the team.
05
06of 6
Step 6 of 6: Reflect
End with a short check on what worked and what to adjust in the next session.
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
Pick a suitable task
Choose work that is complex, risky or unfamiliar enough to benefit from two minds.
02
Agree roles and rhythm
Decide who drives first and set a switching interval, for example every 25 minutes or every passing test.
03
Drive and navigate
The driver writes code and explains intent; the navigator reviews, asks questions and tracks the plan.
04
Switch roles
Swap at the agreed interval so both stay engaged and both touch the code.
05
Rotate partners
Change pairs across days or stories to spread knowledge across the team.
06
Reflect
End with a short check on what worked and what to adjust in the next session.
Which decisions it helps with
Decision profile
A tool 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
Other formatDoes not fit neatly into the available categories
The questionWhat kind of tool is it?Assessment · Other format · 39 %
Decision stage
Plan the work, roles and deadlineslikely
The questionWhat stage of the decision are you at?Assessment · Plan the work, roles and deadlines · 79 %
What it applies to
Processes and operationslikely
The questionWhat is the decision about?Assessment · Processes and operations · 76 %
Discipline
Agile and software developmentvery likely
The questionWhich discipline does it come from?Assessment · Agile and software development · 100 %
IIIResources required
TimeBetween “several days” and “weeks or months”The questionHow much time can you spend on this?Assessment · Between “several days” and “weeks or months” · confidence 30 %
PeopleA small group (2 to 8)The questionHow many people will take part?Assessment · A small group (2 to 8) · confidence 98 %
DataNone: experience is enoughThe questionWhat data do you have available?Assessment · None: experience is enough · confidence 81 %
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 76 %
Time horizonDays or weeksThe questionHow far ahead do you need to plan?Assessment · Days or weeks · confidence 98 %
ScopeOne teamThe questionWho will this decision affect?Assessment · One team · confidence 99 %
FrequencyOccasionallyThe questionIs this a one-off decision or something you expect to repeat?Assessment · Occasionally · confidence 96 %
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 · Bottom-up · confidence 91 %
PeopleProcessesThe questionIs this mainly a people problem or a process problem?Assessment · Mostly processes · confidence 65 %
Generate optionsNarrow down optionsThe questionDo you need to generate more options or narrow them down?Assessment · Mostly narrow down options · confidence 67 %
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 78 %
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 73 %
Protect what we haveTake a riskThe questionDo you need to protect what you have or take a chance on something new?Assessment · Mostly protect · confidence 58 %
Improve what we haveFundamental changeThe questionDo you want to improve what you have or change it fundamentally?Assessment · Mostly incremental improvements · confidence 40 %
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 99 %
Understand firstAct nowThe questionDo you need to understand the situation first or act now and learn as you go?Assessment · Mostly act now · confidence 70 %
IVUseful when
Applicable traits
How it supports actionClarify who does whatThe questionWhat do you need in order to act?Assessment · Clarify who does what · 89 %
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.
Beck, K. (1999). Extreme Programming Explained: Embrace Change. Addison-Wesley Professional.Book that made pair programming a core XP practice. Publisher page shows title, 'By Kent Beck', published Oct 5, 1999 by Addison-Wesley Professional, ISBN-13 978-0-201-61641-5.View source: Extreme Programming Explained: Embrace Change (opens in a new tab) ↗
Key development
Williams, L., Kessler, R. R., Cunningham, W. and Jeffries, R. (2000). Strengthening the case for pair programming. IEEE Software, 17(4), 19-25.Early empirical study of pair programming quality and effort. Crossref record shows title, four authors, IEEE Software vol. 17, pp. 19-25, 2000.View source: Strengthening the case for pair programming (opens in a new tab) ↗
Critique
Hannay, J. E., Dyba, T., Arisholm, E. and Sjoberg, D. I. (2009). The effectiveness of pair programming: A meta-analysis. Information and Software Technology, 51(7), 1110-1122.Meta-analysis finding that pairing is not uniformly beneficial and that effects depend on task complexity and expertise. Crossref record confirms title, authors, journal and 2009.View source: The effectiveness of pair programming: A meta-analysis (opens in a new tab) ↗
Practical guide
Williams, L. and Kessler, R. (2002). Pair Programming Illuminated. Addison-Wesley Professional.Book-length treatment of how to pair, pair combinations and pitfalls. Publisher page shows 'By Laurie Williams, Robert Kessler', published Jun 28, 2002, ISBN-13 978-0-201-74576-4.View source: Pair Programming Illuminated (opens in a new tab) ↗