Preface to clean code

Preface to clean code

Why write clean code

  1. I can say that it is the type that requires a relatively high level of coding.It is not that the code can run ok.I always hope that my code is as beautiful as a poem, and it is pleasing to read.
  2. I am also suffering from poor-quality code. I can say that my level in the class is pretty good, so I often have classmates or schoolmates who ask me questions. When they show the code to me, it is absolutely Most of them can be regarded as disaster-level. For example, function names or variables are all abc+ numbers, I don't know what this code is for (in fact, my initial code is also like this).

I currently understand the clean code

  1. The logic is clear and organized.
  2. Try to be concise and not talk nonsense
  3. Necessary notes
  4. Variable names, function names, etc. must be clearly expressed

Future outlook

Clean code is a very good book. I hope I can study hard, practice hard, and become a "code poet".

Guess you like

Origin blog.csdn.net/qq_44823898/article/details/108490875
Recommended