61

程序猿应该记住的几条基本规则

 6 years ago
source link: https://juejin.im/post/59efdf5c6fb9a0452724c9bd
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
简简单单几条原则: 模块的用户永远也不应该被模块的行为所迷惑 模块要尽可能小,但又不能太小 代码应该被重用,而不是被拷贝 模块之间的依赖性应该尽可能降到最小 错误应该尽早被检测出来,最好是在编译时刻 重点讲两个。 模块的用户永远也不应该被模块的行为所迷惑

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK