Understanding of Pair programming

Source: Internet
Author: User

Pair programming is one of the 12 practices of Extreme Programming (XP), which means that two programmers sit side-by-shoulder in front of the same computer to work on the same design, the same algorithm, and the same piece of code, and the roles of the two can be exchanged at any time. XP thinks pair programming can improve software development efficiency, many foreign software companies are keen to pair programming, Facebook programmer Kent Beck (Kent Beck) said: "The communication between the pair of programmers is very good, you can even no longer talk to communicate." You just have to simply describe and combine the gestures. Grockit chief Executive Roy Gilbert Roy Gilbert says the model has proved very successful and his programmers "are continuing to promote this practice." IBM also launched the Collaborative development tool ECF for pairing programming.

In today's software engineering concepts, code walk-through is a very important process. The purpose of the Code walk is to improve the quality of the software, as well as maintainability, the checked code is easier to be understood by other members of the project team. Then the cost of code walking is not low, experienced software engineers know that it is not easy for a developer to fully understand another person's code, not just the different code programming habits will lead to the difficulty of reading code, under the complex business logic, different developers design ideas are very different, Lead to different people's understanding of the code is very big difference. All too often code walk closely just to see if there are grammatical errors in the code, whether it conforms to the programming specifications, and to find the business logic of deep errors is very difficult, so many impetuous software development companies even directly omit the code to go through this step.

Pair programming is a very effective way to improve the efficiency and quality of code-checking. Two developers sit together, think and discuss design ideas, take turns to write code, turn to another person in the writing, code walking and coding parallel development, rather than waiting for the full code after the coding, the resulting program code style is two people can accept. There is no question of a person trying to understand another code, which is actually a common understanding of two people. And because two people's thought blind area is far less than one person's thought blind area, so can in the coding process promptly discovers the program in the business logic realization deep question, greatly enhances the code to walk the check the efficiency and the quality. For the software development process which includes the code walk-through phase, pair programming can greatly improve the software development efficiency.

Pair programming has many advantages, such as improving the quality of software code, promoting knowledge transfer, and reducing the learning cost of new employees. In addition, the author also found that pair programming has a big advantage, that is, agile development advocated by the common responsibility concept to implement.

Agile Development emphasizes that the project is shared by the entire project team, so the project's problem is the responsibility of all members of the project team, not just one person's responsibility, and all members of the project team should work together to resolve and avoid all project issues. Pairing programming is a good embodiment of this concept, in pairs programming two people frequently change roles, for the program code there is a mistake, it is difficult to distinguish who is the responsibility, and even difficult to understand where the code is who wrote, so the code problem is at least a pair of two people's common responsibility, fundamentally promote the concept of common responsibility.

This time the teacher put forward a new project-pair programming. By the teacher's explanation, my understanding is: Pair programming is two people use a notebook to program, one person is responsible for sitting in front of the computer to knock code, another person in the next to provide ideas or check whether there are logic errors or grammatical errors.

This pair is programmed by Li Zhifang. The teacher gives us the knot to the topic is: 1. The user can enter the number set 2 for the draw. You can choose whether to allow repeat draw 3. Users can choose to generate groups, such as: 35 people, 4-5 people per group, you can generate random group 4. Show number scrolling effect 5. Easy to operate interface, beautiful design, friendly
Due to the limitations of one's mind, there are many places that are not considered or considered too much into a dead end. Finally, through the discussion with the pair of teammates, through teamwork, the idea of summing up all together, to design a more perfect program.

  

Understanding of Pair 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.