Understanding Pair Programming

Pair programming is a way of programming that involves two people, a driver and a navigator, at a single computer. We'll define the function of both below:

The Driver

  • is the programmer doing the typing
  • is focused on the line being written and the syntax.
  • doesn't get too involved in the structure and planning.

The Navigator

  • is the programmer that is focused on the big picture.
  • tries to predict future problems and make sure we don't get into situations that will bring us problems later on.
  • focuses on giving direction so the driver can focus on being efficient in writing the code

Pair programming approaches a problem as a team allowing quicker and more efficient solucions. While we were programming this page, we were able to catch syntax issues and solve problems that would otherwise take us a lot longer.