Back to list
Lv.3

Pair Programming

Pair Programming

A development method where two people share one computer and write code together while talking it through

In Simple Terms

Pair programming is a way of working where two people sit at one computer and build a program together. For example, one person types on the keyboard while the other watches the screen, looks for mistakes, and offers ideas, and they swap roles after a set amount of time. It's easier to notice mistakes on the spot, and the two can teach each other as they go, so it's used for training newcomers and in situations where you want to avoid errors.

Behind the Name

The name points to the key idea of this method: instead of one person working alone, two people team up as a pair to write the code.

Take a Closer Look!

Pair programming is a way of developing software where two programmers share one computer and write a single program together.
They don't just sit side by side, though. They talk things over and check the screen together as they work.

Each person takes a different role. The one who types and actually writes the code is called the driver. The one beside them, watching the screen to catch mistakes and thinking about what to do next, is called the navigator.
These roles aren't fixed. The basic idea is to swap after a set amount of time.

Because both people watch the same screen, typos and misunderstandings are easier to catch on the spot. Also, since one person's knowledge and techniques can be passed along while working, it's used to help even out skill levels across the team and to train newcomers.
On the other hand, it takes two people's time, so it tends to be chosen for important parts where you want to avoid mistakes or when building something tricky.

CategoryProgramming