荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: Mill (冥王星之子), 信区: Linux
标  题: 1988 年 X 系统被设计之时, 有 7 条原则
发信站: BBS 荔园晨风站 (Tue Dec  8 17:36:42 1998), 站内信件


1988 年 X 系统被设计之时, 有 7 条原则,
我觉得非常好, 供给写系统的人作为参考:

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 completely 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%,
  则使用比较简单的解决之道.

按: 10% work -> 90% effect (easy) ; 剩馀 90% work 才 10% more effect (hard) ;
    10% work 是比较好的解决之道, 简单, 有效率, 纵使不能尽善尽美.

6 Isolate complexity as much as possible.

  尽可能把复杂性独立出来.

7 Provide mechanism rather than policy. In particular, place user interface
  policy in the client's hands.

  与其提供施行方针不如提供处理机制. 特别将使用者介面的施行方针交由客户处理.

按: policy => 大纲, 处理规定.
    mechanism => 细则, 处理流程.

上述中文翻译与编按部分由我一手完成, 如有错谬之处, 欢迎来信指正. (ee)
--
well ... here is my E-mail: daniel@rs560.ncu.edu.tw

--
◎ Origin: 中央松涛站□bbs.ee.ncu.edu.tw  From: yang.dd.ncu.edu.tw


推荐 X-Windows 程式设计的书

        *** 开发 X 视窗软体 4 年, 提供一些书目, ***
        *** 希望对想要发展 X 视窗软体的人有帮助 ***

X 视窗使用者:
        Vol 3. X Window System User's Guide (for X11R5) [O'Reilly]

Xlib 程式设计:
        Intro. to The X Window System, OLIVER JONES, [Prentice Hall]
        网路透明化 X 视窗系统 (中译本) [松岗]
        Vol 2. X lib Reference Manual (X11R4/R5) [O'Reilly]

Motif 程式设计:
        Vol 6A. Motif Programming Manual (for OSF/Motif 1.2) [O'Reilly]
        Vol 6B. Motif Reference Manual (for OSF/Motif 1.2) [O'Reilly]
        Vol 4. X Toolkit Intrinsics Programming Manual (X11R4/R5) [O'Reilly]
        Vol 5. X Toolkit Intrinsics Reference Manual (X11R4/R5) [O'Reilly]

X 视窗管理者:
        Vol 8. X Window System Administrator's Guide (for X11R4/R5) [O'Reilly]

O'Reilly & Associates X 视窗系列手册:

   Vol 0. X Protocol Reference Manual
   Vol 1. X lib Programming Manual (X11R4/R5)
   Vol 2. X lib Reference Manual (X11R4/R5)
   Vol 3. X Window System User's Guide (for X11R5)
   Vol 4. X Toolkit Intrinsics Programming Manual (X11R4/R5)
   Vol 5. X Toolkit Intrinsics Reference Manual (X11R4/R5)
   Vol 6A. Motif Programming Manual (for OSF/Motif 1.2)
   Vol 6B. Motif Reference Manual (for OSF/Motif 1.2)
   Vol 7. XView Programming Manual (Ver. 3.2)
   Vol 7x XView Reference Manual (Ver. 3.2, Companion to Vol. 7)
   Vol 8. X Window System Administrator's Guide (for X11R4/R5)

书名摘要:
   Vol 0. X Protocol 参考手册
   Vol 1. Xlib 程式设计
   Vol 2. Xlib 参考手册
   Vol 3. X 视窗使用手册
   Vol 4. X Toolkit 程式设计
   Vol 5. X Toolkit 参考手册
   Vol 6A. Motif 程式设计
   Vol 6B. Motif 参考手册
   Vol 7. XView 程式设计
   Vol 7x XView 参考手册
   Vol 8. X 视窗系统管理手册

================================
致远科技  关耀辉
新竹市科学园区研发二路 28 号 2F
tel:  (035)770243#20
email: kuan@bdc.com.tw
================================

> ----------------------------------------------------------------------- <

发信人: woodland.bbs@csie.nctu (◎ 西瓜小子 ◎), 信区: Xwindow
发信站: 交大资工天龙新闻社 (Fri Dec  9 12:32:36 1994)

cat (kuan.bbs@bbs.cis.nctu.edu.tw) 提到:
> Motif 程式设计:

   补充一本好书

    X Window System Programming and Alpplications with Xt ( Motif Edition )
    Prentice Hall 出版,Young 著(第二版)-- X11R5 , Motif 1.2

  还有一本

   Object-Oriented Programming with C++ and Motif
   也是 Young 写的,Prentice Hall 出版

--


--
__________ 欢  迎  光  临  黑客版       ◤
                         ┏━━━━━━━━━━━━━┯┓
                         ┃ 弃我去者,昨日之日不可留, ┕┫
                         ┃ 乱我心者,今日之日多烦忧。  ┃
                         ┗━━━━━━━━━━━━━━┛


※ 来源:.BBS 荔园晨风站 bbs.szu.edu.cn.[FROM: 192.168.0.167]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店