Pair Programming
Get an overview of how pair programming works in Agile.
Overview
Pair programming is a wonderful technique where two developers code together behind one computer. The developer who writes the code is the driver. The other, who watches and reviews the code while it’s written, is the navigator. They might switch roles at times too.
In terms of time spent, pair programming seems inefficient. Two pair programmers write code faster together than a single developer. Though faster, it’s still not more cost effective. To achieve that, the pair programmers would have to be twice as fast.
Advantages of pair programming
Pair programming provides interesting advantages:
-
Knowledge sharing
If two developers write code together, they share knowledge about the code. When regular pair programming is used, with varying pairs, the knowledge of architecture and technology spreads quickly across the team.
-
Finding a solution faster
Code writing is a creative process in which often several alternative solutions are possible. In pair programming, alternatives are found quickly and solutions are selected and tested faster. ...