How to Pair Program

Projected Time

About 45 minutes

Prerequisites

Motivation

Pair programming is a very common way to write code and to solve software engineering problems. Pair programming generally produces higher-quality code, meaning fewer bugs and better readability.

“If you don’t like pairing, don’t pair. But be prepared for the folks who have developed the pairing skill to fly past you.” - “Uncle” Bob Martin

Which companies use pair programming?

Objectives

Participants will be able to:

Specific Things to Learn

Supplemental Materials

Lesson

Common Mistakes / Misconceptions

Group Practice

  1. Collaboratively come up with a list of questions to ask your pair partner before you begin a pair programming session together. Write these down for later reference.

  2. Collaboratively edit your questions list at the end of your pairing.

Additional Resources

Independent Practice

  1. Techtonica staff will assign pairs. Ask and answer the questions we came up with during the Group Practice. Work with your pair partner on this quick code challenge on codepen. Be sure to fork it first.

Check for Understanding