Chybeta

《The Pracetice of Programming》读书笔记(1)

《The Pracetice of Programming》读书笔记

Style

  • Usually,the real code is mostly well down,but with something that could be improved.

  • There is more to writing a program than getting the syntax right, fixing the bugs, and making it run fast enough.

  • The principles of programming style are based on common sense guided by experience.

Names

  • labels an object and conveys information about its purpose.

  • informative、concise、memorable, and pronounceable if possible

  • the border the scope,the more information conveyed.

suggestion 1

use descriptive name for globals,short names for locals.

微信扫码加入知识星球【漏洞百出】
chybeta WeChat Pay

点击图片放大,扫码知识星球【漏洞百出】