📄 00000004.htm
字号:
<HTML><HEAD> <TITLE>BBS水木清华站∶精华区</TITLE></HEAD><BODY><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER>发信人: <A HREF="mailto:ee.bbs@bbs.ee.ncu">ee.bbs@bbs.ee.ncu</A> (Special~), 信区: programming <BR>标 题: 1988 年时, X 系统背後的 7 条程式设计原则. <BR>发信站: 中央大学松涛风情资讯站 (Sat Sep 16 01:26:53 1995) <BR>转信站: cis_nctu!news.cis.nctu!news.cc.nctu!ccnews.NCTU.edu.Tw!db.csie.ncu!Eve <BR> <BR>1988 年 X 系统被设计之时, 有 7 条原则, <BR>我觉得非常好, 供给写系统的人作为参考: <BR> <BR>1 Do not add new functionality unless an implementation cannot complete <BR> a real application without it. <BR> <BR> 除非一件真正的应用程式非用某种功能否则无法完成, 不然就不要添加新的功能. <BR> <BR>按: 太多功能却处处相似劣於将他们整合为一个功能, 太多相似的功能往往造成 <BR> 程式设计的选择困扰, 也就是去芜存菁, 方能显现功能的真正实用价值. <BR> <BR>2 It is as important to decide what a system is not as to decide what it <BR> is. Do not serve all the world's needs, but make the system extensible <BR> so that additional needs can be met in an upwardly compatible fashion. <BR> <BR> 要决定一个系统是什麽跟决定一个系统不是什麽是同等重要的. 不须满足全世界 <BR> 的需求, 而应让系统能够延伸扩张, 以便额外的需求能以往上相容的方式被满足. <BR> <BR>按: 往上相容的意思是, 系统只须再做微小修改便可以将功能更新或扩充. <BR> <BR>3 The only thing worse than generalizing from one example is generalizing <BR> from no example at all. <BR> <BR> 唯一比从一个例子中归纳做出结论更糟只有从完全无例子中归纳做出结论. <BR> <BR>按: 也就是说, 从许多例子中归纳做出结论是好的, 优於自己凭空造想. <BR> <BR>4 If a problem is not completely understood, it is probably best to <BR> provide no solution at all. <BR> <BR> 如果不能完全了解一个问题, 大概最好别提供任何解决之道. <BR> <BR>按: 可能解决之道不符合问题本意, 误入歧途, 浪费精力. <BR> <BR>5 If you get 90 percent of the desired effect for 10 percent of the work <BR> required to get 100 percent, use the simpler solution. <BR> <BR> 如果因为一件工作的百分之十(该工作要求做到 100%), 你得到想要的效果之 90%, <BR> 则使用比较简单的解决之道. <BR> <BR>按: 10% work -> 90% effect (easy) ; 剩馀 90% work 才 10% more effect (hard) ; <BR> 10% work 是比较好的解决之道, 简单, 有效率, 纵使不能尽善尽美. <BR> <BR>6 Isolate complexity as much as possible. <BR> <BR> 尽可能把复杂性独立出来. <BR> <BR>7 Provide mechanism rather than policy. In particular, place user interface <BR> policy in the client's hands. <BR> <BR> 与其提供施行方针不如提供处理机制. 特别将使用者介面的施行方针交由客户处理. <BR> <BR>按: policy => 大纲, 处理规定. <BR> mechanism => 细则, 处理流程. <BR> <BR>上述中文翻译与编按部分由我一手完成, 如有错谬之处, 欢迎来信指正. (ee) <BR>-- <BR>well ... here is my E-mail: <A HREF="mailto:daniel@rs560.ncu.edu.tw">daniel@rs560.ncu.edu.tw</A> <BR> <BR>-- <BR> ◎ Origin: 中央松涛站□bbs.ee.ncu.edu.tw From: yang.dd.ncu.edu.tw <BR><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -