The fourth chapter of the law of construction mainly deals with the foundation of the two people's cooperation, and the importance of the cooperation between the two people, which is the continuous running-in, adapting and progressing of two people.
This chapter is about the preparation of two cooperation needs, such as code specification, which is very important, if your code, only you can understand, this is very detrimental to teamwork, good code, can not be known to others, this is a bad program, so the code is very important. Good code should abide by the principle: concise, easy to understand, no ambiguity. We should pay attention to the specification and use of indentation, line width, parentheses, line breaks, and empty numbers when we standardize the code. We want to develop a good habit of writing code, pay attention to the name of the program, we have to name in English, not casually named, long time will forget our function function, which for us to quickly read the difficulties. There is also the need to pay attention to case, which also affects the visualization of functions. We also want to understand some of the C + + classes, but for the Goto statement, such as too flexible statement is to pay attention, do not because the use of the cause of program errors and non-standard.
Finally, we have to learn to pair programming, to write good code, to have a good effect, pairing programming is a good choice, because two pairs of programming can see their own mistakes, both through discussion more conducive to the normative and correctness of the code. In addition, pair work is beneficial to improve the confidence of programmers, high-quality output can bring a higher satisfaction, so that mutual learning and exchange of experience, we will continue to progress.
Finally, we want to cooperate with others, analysis and communication, so that we in the completion of the task can progress, and constantly improve their level, then our biggest harvest.
The fourth chapter of the Law of construction