posts - 80,comments - 749,trackbacks - 2

          下面是從Contribuing to Eclipse這本名著上摘錄的一篇附錄,很有價值,比任何講開發方法的書或者架構模式字典都要好,單獨拿出來,與大家分享。


          Appendix: Rule


          Contribution Rule:
              Everything is a contribution

          Lazy Loading Rule:
              Contributions are only loaded when they are needed

          Sharing Rule:
              Add, don’t replace

          Conformance Rule:
              Contributions must conform to expected interfaces

          Monkey See/Monkey Do Rule:
              Always start by copying the structure of a similar plug-in

          Relevance Rule:
              Contribute only when you can successfully operate

          Safe Platform Rule:
              As the provider of an extension point, you must protect yourself against misbehavior on the part of extenders.

          Invitation Rule:
              Whenever possible, let others contribute to your contributions

          Fair Play Rule:
              All clients play by the same rules, even me.

          Explicit Extension Rule:
              Declare explicitly where a platform can be extended

          Diversity Rule:
              Extension points accept multiple extensions

          Good Fences Rule:
              When passing control outside your code, protect yourself.

          Program to API Contract Rule:
              In your contributions check and program to the Eclipse API contract.

          Integration Rule:
              Integrate, don’t separate

          Responsibility Rule:
              Clearly identify your plug-in as the source of problems.

          Explicit API Rule:
              Separate the API from internals

          Stability Rule:
              Once you invite someone to contribute, don’t change the rules

          Revelation Rule:
              Reveal the API a little at a time

          Sandbox Rule:
               Execute code under development in a separate virtual machine

          Relevance Rule:
              Contribute only when you can successfully operate

          posted on 2005-02-21 14:33 Brian Sun 閱讀(1458) 評論(4)  編輯  收藏 所屬分類: 軟件

          FeedBack:
          # re: Eclipse: Rules
          2005-02-23 06:27 | Frank
          呃......讓我想想該怎么頂哦...........  回復  更多評論
            
          # re: Eclipse: Rules
          2005-04-23 10:49 | 阿酷
          Contribute應該翻譯成什么?  回復  更多評論
            
          # re: Eclipse: Rules
          2005-04-23 10:52 | 阿酷
          Monkey See/Monkey Do 也不懂  回復  更多評論
            
          # re: Eclipse: Rules
          2005-04-23 21:23 | Brian Sun
          Contribute一般翻譯為“貢獻”,取表面意思。Monkey See/Monkey Do譯為“有樣學樣”。
            回復  更多評論
            
          主站蜘蛛池模板: 汨罗市| 千阳县| 曲靖市| 香河县| 宜川县| 农安县| 嘉义县| 大连市| 宣恩县| 房产| 永济市| 眉山市| 会泽县| 越西县| 噶尔县| 定结县| 澄城县| 涪陵区| 巩义市| 抚州市| 溧阳市| 布尔津县| 嵩明县| 仁化县| 拜泉县| 西昌市| 梅河口市| 德令哈市| 河间市| 嘉禾县| 江山市| 会理县| 四平市| 武城县| 古浪县| 方正县| 樟树市| 涡阳县| 民权县| 汝州市| 巴东县|