1.

Explain pair programming and its benefits?

Answer»

Pair PROGRAMMING the term derived from EXTREME Programming. Pair programming is a style of programming in which two programmers work side-by-side at one computer, sharing one screen, keyboard and mouse, continuously collaborating on the same DESIGN, algorithm, code or test.

One programmer, termed as the driver, has control of the keyboard/mouse and actively implements the code or WRITES a test. The other programmer, termed as the navigator, continuously observes the work of the driver to identify defects and also thinks strategically about the direction of the work.

When necessary, the two programmers brainstorm on any challenging problem. The two programmers periodically switch roles and work together as equals to develop software.

Pair programming is MUCH more effective as compared to code reviews. For code review, the code needs to be completed, but in programming in pairs leads to correct the code instantly without any waiting period. Pair programming is much more efficient as in code review it could be possible that the programmer might not be around. Fewer chances of bugs being corrected.

Benefits of Pair programming

  • Fewer defects
  • Better decisions
  • Higher productivity
  • Developers confidence
  • Knowledge sharing
  • Learning
  • Team building


Discussion

No Comment Found