volume_mute
Three Advantages of Pair Programming
publish date: 2026/06/04 11:20:1.191835 UTC
volume_mute
Which of the following are the three stated advantages of pair programming in XP? Select all that apply.
Correct Answer
(1) It supports the idea of collective ownership and responsibility — reflecting the concept of egoless programming where the software is owned by the team as a whole
(2) It acts as an informal review process because each line of code is looked at by at least two people
(3) It helps support refactoring by ensuring others benefit immediately from the improvements, making them likely to support the process
Explanation
The three advantages of pair programming: (1) collective ownership — reflects Weinberg's idea of egoless programming; (2) informal code review — each line of code looked at by at least two people, a cheaper inspection process than formal reviews; (3) supports refactoring — where pair programming and collective ownership are used, others benefit immediately from refactoring and are likely to support it.
Reference
Software Engineering, Ian Sommerville, 9th edition
