🧩Pair Programming
Also known as Pairing, Pair Coding, Driver and Navigator
Two people write the same code together. One types and one checks.
Think of it like
Think of it like a rally car with a driver and a map reader. One steers. The other looks ahead.
Example
Jack is new to the payment code, so he pairs with Lucy for a week. By Friday he can change it alone, and they found two bugs on the way.
Why it matters
Bugs found while typing are the cheapest bugs there are. And no part of the code is known by just one person.
Definition
Common mistake
Key takeaways
- 1Driver and navigator. One types, one guides.
- 2Swap often. Every 15 to 30 minutes.
- 3Share what you know. Knowledge spreads.