What is pair programming?
Pair programming is when two programmers share one computer. One person drives by typing the code, while the other navigates by reading, thinking ahead, and catching mistakes.
Research shows that pair programming can improve code quality, help students catch bugs earlier, and make programming more inclusive. The hard part is often just deciding who works with whom.
Try it: Pair Programmer
Paste a list of names, one per line, choose a group size, and click Generate Groups. Leftover students are distributed one at a time across existing groups.
From roster to random groups
The tool uses the Fisher-Yates shuffle to put the names in a random order. It then walks through the list and fills groups up to the size you chose.
If the roster does not divide evenly, the extra names are placed one by one into existing groups. That keeps groups as balanced as possible and avoids tiny leftover groups.
A true random shuffle means the same roster can produce different groups every time you click the button.
Make pair programming work
- Rotate roles every 5–10 minutes so both students get time typing.
- Switch partners for each new activity or project.
- Encourage the navigator to ask questions and suggest the next step.
- Use random groups, but let students move if a pairing causes real problems.
Quick quiz
1. In pair programming, the person typing is called the?
2. The person watching and guiding is called the?
3. The tool uses Fisher-Yates to do what?
Keep exploring
Explore more programming concept tutorials.
Part of the Classroom Tools tutorial series.