Principles of good writing code

  • Write clean code
  • Using the code the full cycle (assembly of codes, if the same code is repeated, defined as a function or took the class codes to reuse)
  • Learning the Standard Library
  • Keep the programming style (try to develop a personalized code style)
  • Use consistent, clear nomenclature
  • By saving data format specification (data not save two identical format)
  • Distinguish between code and data (data-independent code logic should try to distinguish)
Published 98 original articles · won praise 5 · views 10000 +

Guess you like

Origin blog.csdn.net/chengsilin666/article/details/82745097