Code Complete two

For if the "Code Complete" This book can be summed up in one sentence, I thought it was the "man to write code, rather than machine."

  A: people write code, it is bound to consider the extension of the code. People are changing, the real world is changing, it is necessary to design before writing code, but also have design patterns, make you want to please. As design patterns we have learned this semester general, for code
Scalability requirements are very important, which is particularly close to opening and closing the principle of scalability.
  Two: man writing code, it is bound to consider the readability of the code. The book numerous times stressed the importance of variable names, although both code to compile and run properly, but the former requires a combination of context even guess with Mongolia do not necessarily understand it correctly, and to see at a glance which Chunxindangyang.
  Three: man writing code, it is bound to consider whether the simple logic code. In front of the machine, the human brain appears to be too limited. If the code does not follow the simple logic can be understood that humans, such as if, for, switch or the like, without limiting the use of GOTO, recursive, when the code amount reaches a certain level, people would not be able to maintain such a program.

Guess you like

Origin www.cnblogs.com/NCLONG/p/12132276.html