unix编程的经典原则
来源:互联网 发布:房产经纪人开单软件 编辑:程序博客网 时间:2024/06/10 00:27
摘录自The Art of Unix Programming
Modularity: Write simple parts connected by clean interfaces.
Clarity: Clarity is better than cleverness.
Composition: Design programs to be connected with other programs.
Separation: Separate policy from mechanism; separate interfaces from engines.
Simplicity: Design for simplicity; add complexity only where you must.
Parsimony: Write a big program only when it is clear by demonstration that nothing else will do.
Transparency: Design for visibility to make inspection and debugging easier.
Robustness: Robustness is the child of transparency and simplicity.
Representation: Fold knowledge into data, so program logic can be stupid and robust.
Least Surprise: In interface design, always do the least surprising thing.
Silence: When a program has nothing surprising to say, it should say nothing.
Repair: Repair what you can — but when you must fail, fail noisily and as soon as possible.
Economy: Programmer time is expensive; conserve it in preference to machine time.
Generation: Avoid hand-hacking; write programs to write programs when you can.
Optimization: Prototype before polishing. Get it working before you optimize it.
Diversity: Distrust all claims for "one true way".
Extensibility: Design for the future, because it will be here sooner than you think.
上述原则归结为一个词,就是KISS:keep it simple, stupid
Modularity: Write simple parts connected by clean interfaces.
Clarity: Clarity is better than cleverness.
Composition: Design programs to be connected with other programs.
Separation: Separate policy from mechanism; separate interfaces from engines.
Simplicity: Design for simplicity; add complexity only where you must.
Parsimony: Write a big program only when it is clear by demonstration that nothing else will do.
Transparency: Design for visibility to make inspection and debugging easier.
Robustness: Robustness is the child of transparency and simplicity.
Representation: Fold knowledge into data, so program logic can be stupid and robust.
Least Surprise: In interface design, always do the least surprising thing.
Silence: When a program has nothing surprising to say, it should say nothing.
Repair: Repair what you can — but when you must fail, fail noisily and as soon as possible.
Economy: Programmer time is expensive; conserve it in preference to machine time.
Generation: Avoid hand-hacking; write programs to write programs when you can.
Optimization: Prototype before polishing. Get it working before you optimize it.
Diversity: Distrust all claims for "one true way".
Extensibility: Design for the future, because it will be here sooner than you think.
上述原则归结为一个词,就是KISS:keep it simple, stupid
- unix编程的经典原则
- UNIX编程的几个原则
- unix编程艺术的设计原则
- 软件开发编程的经典原则
- Unix经典编程
- Unix 的设计原则
- unix编程艺术中的17点编程原则--设计开发者的至高准则
- unix编程艺术中的17点编程原则--设计开发者的至高准则
- unix编程艺术中的17点编程原则--设计开发者的至高准则
- unix编程艺术中的17点编程原则--设计开发者的至高准则
- unix编程艺术中的17点编程原则--设计开发者的至高准则
- 传世经典书丛-UNIX编程艺术
- Unix环境经典编程书籍推荐
- Unix环境经典编程书籍推荐
- Unix编程艺术中的17点编程哲学原则
- 7.shell编程(7) --- 文件类型以及UNIX编程原则
- 编程的首要原则
- 编程的首要原则
- Office2007 Beta2简体中文版免费下载
- 如何将其它类型的变量转换成字符串
- SQL常用命令
- 『程序员』谈谈软件从业学习方向(未来方向)
- 2007 Microsoft Office system预览版功能演示
- unix编程的经典原则
- 正确的优化分段函数形式的多重分支代码
- The Zen of Python (by Tim Peters)
- 电脑自动重启的原因
- AMR声码器原理
- 安装NetWeaver需要注意的几个问题(www.mynetweaver.cn)
- ??运算符
- 100个最佳Linux站点(推荐)
- 菲亚特