Is Beautiful code important? There is no doubt that the answer is yes, but the premise is that development meets the time, scope, cost, and quality constraints of the project. A project must meet the time requirement, while a delayed project is equal to an increase in cost. A project must meet the scope requirement. exceeding the limit is a waste, which reduces work costs. A company depends on resources, I believe that no boss is willing to see that costs keep increasing. To meet the quality requirements, we must ensure that all key stakeholders of the project are satisfied with the development process and results. These are all constraints above the technology and Code. On the basis of the above, we should consider the code and technology.
At present, the management of many small and medium-sized IT enterprises in the Chinese land is very nonstandard and lacks process-based. In this case, the technical level and responsibility of developers are all dependent on how code is written. To write good code, you can't rely on others, but on yourself. You must constantly learn and improve your own technology to improve your coding level. You must have a strong professional attitude towards projects, teams, and your work, take responsibility for your managers, subordinates, future defenders, testers, and users. You need to write the most suitable code to meet other project constraints.
The beauty of the Code is an important indicator to evaluate the technical level of a programmer. Beautiful code is maintainable, extensible, inherited, robust, and unified in style. Software requirements are constantly changing, and the code is maintainability, so that we can quickly report changes. Maintenance is divided into two categories: Modification and expansion. The modification code can be implemented quickly, but it is not suitable for large-scale modification, scalability is difficult, but it is very effective for large changes. In addition to maintainability, we need to ensure the system's scalability. Inheritance means that it is very easy for the younger brother to understand the code, learn and maintain the code after he leaves; strong robustness can ensure that the system is operational and won't die once every three days; the Code with a uniform style can be easily learned.
I started learning about code excellence last year. My learning path is: refactoring = "design mode =" Object-Oriented Design = "Agile development. Only by studying Refactoring can we identify the bad smell of code and know the shortcomings in your code and how to eliminate them. The Design Pattern provides a general solution that allows you to learn how to process code duplication, improve code reusability. The design model is a template that teaches people how to do it, object-oriented design is an idea, how to think about it, and how people learn things are first imitated and then understood, learning Object-oriented Design can comprehend many principles and understand why and why. Although agile development is largely a management knowledge, however, the kind of rapid development and rapid feedback that it proposed allows people to learn the priorities of doing things, so that people can pay attention to feedback and essential problems. Many people who are new to the design model are easy to design too much, everywhere, agile development can help people get rid of this tendency.