Chapter 1Introduction to Pair Programming

There is an old saying that two heads are better than one. It may not be universally true, but modern psychology research has provided evidence of its validity in many situations.[12] For programmers, an extra set of eyes can prevent errors and inject new ideas when working to solve tough problems. Writing code in conjunction with another programmer might help us identify edge cases or create better code designs that reduce coupling and improve cohesion—making our programs easier to maintain down the road. But there’s no need to speculate about the benefits of writing code with another programmer. Evidence from academia and industry shows that pair programming leads to better code.[13]

Pair programming ...

Get Remote Pairing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.