Concept: Pair Programming
Related Elements
Main Description


All production software in XP is produced by two programmers, sitting side by side, at the same machine. This practice ensures that all production code is reviewed by at least one other programmer and results in better design, better testing, and better code.

Research into pair programming shows that pairing produces better code in about the same time as programmers working singly.

Pairing also serves to communicate knowledge throughout the team. As pairs switch, everyone gets the benefits of everyone's specialized knowledge. Programmers learn, their skills improve, and they become more valuable to the team and to the company.


  • Better design, code and tests.
  • Application and skill knowledge sharing across team.

Related Information

See the Pair Programming Guidelines.