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

微信打赏

chybeta Alipay

支付宝打赏