Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M11605

Pair Programming

Pair Programming
CreateHigh supportDesign Thinking
Included
account_tree

Updated 2026-07-28

Loading revision record…

Summary

Pair programming is a software development technique in which two programmers work together at one workstation. One, the driver, writes code while the other, the observer or navigator, reviews each line of code as it is typed in. The two programmers switch roles frequently.

Definition

Pair programming is a software development technique in which two programmers work together at one workstation. One, the driver, writes code while the other, the observer or navigator, reviews each line of code as it is typed in. The two programmers switch roles frequently.

How to use

Pair programming is a software development technique in which two programmers work together at one workstation. One, the driver, writes code while the other, the observer or navigator, reviews each line of code as it is typed in. The two programmers switch roles frequently.

Mechanism

In pair programming, the "driver" writes code while the "navigator" reviews architecture and potential pitfalls in real time, with roles rotating. The mechanism is continuous peer review that eliminates defects at the moment they are created, and immediate knowledge transfer reduces the "bus factor" risk. Although it appears to double the manpower, it actually offsets costs through less rework and faster onboarding.

Practice

In progress 0/4

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

Cases

  • For a highly complex algorithm module, pair programming was adopted; the navigator immediately pointed out out-of-bounds and concurrency issues, resulting in a significantly lower defect rate after delivery compared to solo coding.

Common pitfalls

  • Both people typing or both just watching, losing the division of roles; not switching roles for a long time causing fatigue; forcing pairing on simple, mechanical tasks wastes productivity.
Sources

Source support: Explicit

References currently contain only Wikipedia links; primary sources still need review.

  • link
    en.wikipedia.orghttps://en.wikipedia.org/wiki/Pair_programmingZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS