Poor qualityCodeIt is terrible. So how exactly are they produced? Only by understanding the root cause of their production can we fundamentally eliminate the generation of inferior code.
The generation of poor code mainly comes from the following aspects:
1. Lack of theoretical knowledge
Lack of theoretical knowledge, so that you do not know what quality code is, what is poor code. This article will refer to quality,
2.Programming LanguageInsufficient knowledge
Since the contact with programming languages is limited to common features on the surface, more advanced features have never been used, so I do not know how to write more streamlined code.
This article uses Java as an example to explain the advanced functions that are not commonly used.
3. unfamiliar with programming tools.
It may be a bit exaggerated. I have seen someone move the cursor to the very beginning with an arrow on the keyboard, instead of using the Home key. I have seen global replacement with eyes instead of tools. Although programming tools are used every day, I don't know what the menu that slides by the finger is. It's like Mr. Hong met Zhang Tianshi. This article will take eclipse as an example to introduce some efficient and practical functions.
4. Insufficient English skills
In the past, all the people who wrote quality books for code reading were European and American people. English was just a word, so they seldom mentioned the problem of English ability. However, this is a weakness of Asians. It is often used in programming. An appropriate improvement in English can effectively help improve code readability. This article introduces how to use English in coding based on common parts of speech, sentence patterns, phrases, etc.
5. management omissions
Although the Code is not written by the management personnel, if the management personnel do not know what is good code or how to write good code, they will lead the entire team in an inefficient way. This article describes how management errors affect code quality.