Pair work: implementation and test of elevator scheduling algorithm by 12061171 and 12061168

Source: Internet
Author: User

trooped member Profile:

Members: Niuqiang, school number 12061171; Liu Wencho, school number 120611683 We pair programming to complete the set requirements because we know each other better and faster to do it. is a photo of our collaborative programming:

Niuqiang is an active, active, programming-based person, but he often ignores some of the details, causing him to spend more time on the debugging and error correction of the code, and Liu Wencho is a more comprehensive person, can quickly analyze the problem, and can quickly correct, but the programming ability is weak, It takes more time to complete an assigned task. And we form a team, complementary to each other, not only to better and faster to complete the project, but also in the process of promoting the progress of each other's personal ability to enhance friendship.

We learned about pairing programming in class, but this knowledge is empty and powerless. When we really started the practice of pairing programming, we just confirmed the lesson about pairing programming. In our view: Pair programming can greatly guarantee the quality of the code, making the program more concise, more reasonable in design, and less likely to be exploited. And pair programming can also greatly reduce the time spent on development and knowledge reserves, two people do not need to have a high attainments, just plain ability to do what a person painstakingly to do. Not only that, it is often possible to find a better and faster solution when solving difficulties and problems.

But the advantages of pairing programming are not limited to these. For the pair of two of people, if they can inspire each other and help each other, then they will reap the joy and friendship in cooperation, which in turn to stimulate their personal ability to improve. These are impossible to get when a person is done alone.

But it is obvious that pairing programming has some contradictions that need to be reconciled. Two people have different programming styles, and most say people like to work alone, if they can not communicate in time, often lead to team failure. Not only that, even if two people overcome this contradiction, there will be other problems, such as two different knowledge reserves, hands-on ability differences, which will take a certain amount of time to achieve consensus. What we do is try to overcome these shortcomings at work and take advantage of the advantages of pairing programming to complete our projects faster and better.

As we design our code, we are happy to use some language features and design methods to improve our code. For example, the full use of object-oriented language information hiding feature (information hiding) to complete the encapsulation of classes and attributes, to achieve the protection of data, to ensure the security of the program. The design of the interface (interface) can more standardize the organization of code, and can enhance the reusability of code, after defining the function, how to implement does not need to consider, so it is more convenient to design the entire framework of the Code, improve development efficiency. For loose coupling (loose coupling), the code we design does not reflect well. Because we do not make too many changes in the whole framework, we follow the object-oriented principle, strictly dividing the functions and attributes of each part, so that the change of one module has little effect on other modules except the function.

Pair work: implementation and test of elevator scheduling algorithm by 12061171 and 12061168

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.