A summary of pairing programming

Source: Internet
Author: User

in the course of learning, the teacher asked us to do two people cooperation, pair programming, write a small program, simulate the experience of pairing programming.

I just saw the introduction to pairing programming in the law of construction. This book says that the reason for developing a pair-pair programming is that code review is required after the program code is completed, and the reviewer presents a series of questions to the developer, who is responsible for explaining the answer. Code review has a number of benefits, such as finding code errors, discovering logic, algorithmic errors, potential errors, and regression errors, as well as mutual grant development experience. Since code review has so many benefits, can you use it all the time? Pair programming, pair programming allows developers to be in the state of code review all the time, correct errors in a timely manner, the code quality is higher.

Pair programming is the embodiment of this idea-the use of effective development methods to the extreme, so that we do not have time and without using them. Extreme programming also stems from this idea.

When pairing is programmed, another programmer sits next to you, checking your code and discovering your mistakes in time. Although most of us like a person to write programs, do not like to sit next to a person, but after all, write a program is a logical thinking process, it is easy to make mistakes, there is another person, he/she can from another point of view to find out the errors you neglect, timely correction, to avoid greater losses in the future. Another programmer is like a copilot, he/she is to help you role, not to trouble, nor leadership, your status is equal, you can exchange work on an equal footing. In the pairing process, you can also work shifts, because in the development process, the next person is completely accompany you to complete the program, he/she clearly clear the whole process of the framework and details, but also saves the time to bother explaining.

In short, pair programming is one of many development methods, it has its scope of application, but also has its limitations. We just have to choose the best method for the situation.

A summary of pairing programming

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.