Question: I am reading the book "design: The Evolution nature of Professional Software Development" (won the 19th jolt Productivity Award). I wrote my thoughts and comments, just as I thought.
Almost all walks of life have their own practices. Whether it is conventions or text inheritance, they all play an important role in this industry. As a Software Major, although young, this major attaches great importance to practice. Therefore, it is especially important to pay attention to practice and accumulate practical experience for the development of this major.
Let's first read the four practices mentioned in the book.
The practice of unified encoding style is very basic, but it is easy to be ignored by many people. At the beginning of a project, when a development team is established, the coding standards will be defined and constantly revised during the project practice process. The coding specifications not only unify the coding style, but also constrain comments, naming, and usage to form a contract between team members. This kind of practiceCodeBoth readability and maintainability are enhanced. Most of the time, we are maintaining the existing code, and we do not want to be overwhelmed by the unmaintainable code. Therefore, coding standards and unified coding style are a good starting point.
Intention-oriented coding I think this title is not important. It is actually the top-down one, but it is also slightly different. After all, top-down is a concept in process-oriented methods, in the object-oriented method, the author uses intent-oriented. This intention orientation is put forward as a practice. I think that the implementation of public methods should reflect the order, steps, and other call intentions in the business. In other words, in a class, when a public method is implemented, the call to a series of other methods and a clear and simple process can be completely consistent with the business intent. In fact, we can also use several other practices to achieve this goal, such as good naming and function decomposition.
Encapsulation constructor is also a practice, but we usually do not think so. Instead, we use the creation mode. The encapsulated constructor is also a practical embodiment of the principle of separation between creation and use in the previous chapter. It has been described earlier and will not be repeated.
Public and variability analysis I think the practice chapter is a bit out of line.
In fact, there are many other practices in our work process, such as demo development. When encountering a complex problem or problem, we usually create a separate demo to solve the problem. If the solution is feasible, it will be merged into the project code. Another example is the pile function, which can help us quickly complete design verification. However, there may be some differences between my practice and the 'practice 'mentioned by the author. The author prefers general practice, which is cost-effective, easy to teach, and very useful. However, these practices help us develop code and create a reliable set of practices without knowing how our software can meet ever-changing needs.
Do you have a list of your practices? I hope more good practices can be shared.
-- Welcome to reprint, please indicate the source of http://blog.csdn.net/caowenbin --