主题:  有关编程的几个原则(已翻译)

Call Me Simon

职务:普通成员
等级:2
金币:2.0
发贴:646
注册:2000/9/19 13:56:51
#12001/7/11 8:25:56
这些tips同样适用于Lingo 编程。重要的是思想, 解决问题的思路。

Seven principles for system design

1. Do not add new functionality unless an implementation cannot complete a real application without it.
除非一件真正的应用程序非用某种功能否则无法完成, 不然就不要添加新的功能。

2. It is as important to decide what a system is not as to decide what it is. Do not serve all the world's needs, but make the system extensible so that additional needs can be met in an upwardly compatible fashion.
确定系统不是什么和确定系统是什么同样重要。不要试图满足全世界的需要, 应该使系统具备可扩展性, 在需要的时候,可以扩展来满足并保持向上兼容性。

3. The only thing worse than generalizing from one example is generalizing from no example at all.
比从一个例子来归纳更坏的情形就是从没有例子来归纳。

4. If a problem is not complete understood, it is probably best to provide no solution at all.
如果问题还没有被很好的理解,就不要提供任何方案。

5. If you get 90 percent of the desired effect for 10 percent of the work required to get 100 percent, use the simpler solution.
如果因为一件工作的百分之十(该工作要求做到100%), 你得到想要的效果之90%, 则使用比较简单的解决之道。

6. Isolate complexity as much as possible.
尽可能将复杂性剥离出来。

7. Provide mechanism rather than policy. In particular, place user interface policy in the client's
hands.
与其提供施行方针不如提供处理机制。特别将使用者界面的施行方针交由客户处理。

编辑历史:[这消息被flyingbird编辑过(编辑时间2001-07-12 07:54:30)]
[这消息被flyingbird编辑过(编辑时间2001-07-12 07:59:52)]


wws2000

职务:普通成员
等级:1
金币:1.0
发贴:126
注册:2000/9/18 21:30:19
#22001/7/12 7:30:36
flyingbird能翻译出来吗,或者其他朋友也可以。看不懂啊



Call Me Simon

职务:普通成员
等级:2
金币:2.0
发贴:646
注册:2000/9/19 13:56:51
#32001/7/12 7:57:39
解决问题的关键在于简单, 有效率, 纵使不能尽善尽美。  

程序分析员的价值远高过单纯的coder。