[Original] feelings about pairing programming

Source: Internet
Author: User

This week, due to the requirements of the teacher's homework, this week experienced a pair of programming, at first, it is no surprise, the same is programming, experience before you know the advantages of pairing programming.

Pair programming, literally, is two of people programming together. and 1+1=? This question has always been a question, can be greater than 2, can be equal to 2, can be less than 2, from this programming experience, the pair programming (at least our pair programming), the answer should be greater than 2.

On the many advantages and benefits of pairing programming, in the Xin Zou Teacher's blog http://www.cnblogs.com/xinz/archive/2011/08/07/2130332.html can be seen, I will not say more, I mainly share my thoughts on this pair of programming experiences. In pair programming, one programmer is responsible for writing code, and the other is responsible for checking code errors, accessing necessary information, etc. This kind of programming looks like only one person writes the code, the efficiency is not as good as two people to write the code to be efficient, but the fact is that the programmer often draws more time to adjust the bug, the two bugs often should be in the code process the hand mistake causes, this kind of bug when the other person helps to examine, often will be discovered and corrected immediately For example, in this programming, we use JavaScript and HTML to write the game of life, during the programming process, because our data represents the need to add two rows of two columns to an original matrix, so there are often some for the number of loops to write wrong. This error is often difficult to find in the programmer who is writing the code, while the next-examining programmer can find the bug (a few people find it). There are programmers who write code sometimes disorder and the next check of the programmer's thinking is relatively clear (after all, the focus of attention is different), so the next programmer can also play a hint, these are the pair programming can be achieved, but also the pair of two people in each part of the code this way of the benefits.

Pair programming can also alleviate the burden of programmers, a person to complete the code, often tired, the last bug frequency, but pair programming, in due time two people can exchange roles, so the task of writing code is divided to two people, also reduce the bug rate, this program I feel bugs appear much less than usual, The basic functions are written in much less time. And I was actually the first time to write a JavaScript program, but with the help of teammates, feel that the language is not so unfamiliar, learned a lot of things.

In short, pair programming reduces the frequency of program bugs, reduces the burden on programmers, and helps programmers learn from each other, so let's try.

Note: This is my first time to write a blog, may write the article is very bad, we do not like to spray.

[Original] feelings about 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.