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