Pair Programming

Pair programming requires two software engineers to participate in a combined development effort at one workstation. Each member performs the action the other is not currently doing: While one types in unit tests the other thinks about the class that will satisfy the test, for example. The person that is doing the typing is known as the driver while the person that is guiding is known as the navigator. It is often suggested for the two partners to switch roles at least every half-hour. Pair programming yields the following benefits, roughly ordered from largest benefit to smallest:
  • Increased discipline. Pairing partners are more likely to "do the right thing" and are less likely to take long breaks.
  • Better code. Pairing partners are less likely to go down ratholes and tend to come up with higher quality designs.
  • Resilient flow. Pairing leads to a different kind of flow than programming alone, but it does lead to flow. Pairing flow happens more quickly: one programmer asks the other, "What were we working on?" Pairing flow is also more resilient to interruptions: one programmer deals with the interruption while the other keeps working.
  • Improved morale. Pair programming, done well, is much more enjoyable than programming alone, done well. (On the other hand, pair programming done poorly is much less enjoyable than programming alone done poorly.)
  • Collective code ownership. When everyone on a project is pair programming, and pairs rotate frequently, everybody gains a working knowledge of the entire codebase.
  • Mentoring. Everyone, even junior programmers, has knowledge that others don't. Pair programming is a painless way of spreading that knowledge.
  • Team cohesion. People get to know each other more quickly when pair programming. Pair programming may encourage team jelling.
  • Fewer interruptions. People are more reluctant to interrupt a pair than they are to interrupt someone working alone.
  • One less workstation required. Since two people use one workstation, one less workstation is required, and therefore the extra workstation can be used for other purposes.
Studies have shown that after training for the "people skills" involved, two programmers are more than twice as productive as one for a given task. According to The Economist,
"Laurie Williams of the University of Utah in Salt Lake City has shown that paired programmers are only 15% slower than two independent individual programmers, but produce 15% fewer bugs. Since testing and debugging are often many times more costly than initial programming, this is an impressive result." http://www.economist.com/displayStory.cfm?Story_ID=779429

See also

External links

 

<< PreviousWord BrowserNext >>
pharmacology
pathogen
people against gangsterism and drugs
pdp 8
porsche
porsche 924
pink floyd
pain
pacifist organisation
porsche 944
porsche 968
porsche 912
pvc
pope zacharias
pope valentinus
pope victor i
pope victor ii
pope victor iii
pribislav
political science
public relations
paradox
pure qubit state
parousia
paul mcauley
pdp 11
psychology of torture
pongo de manseriche
presbyterianism
pompeii
parliament
polar bear
pagan
phalanx
penguin island
punic wars
peter carey
punch card
profiler
pope innocent i
philippi
crown princess victoria of sweden
pope innocent ii
pope zosimus