/**
               * as the moon sets over the early morning Merlin, Oregon
               * mountains, our intrepid adventurers type
               
          */

              
          static public Test createTest(Class<? extends TestCase> theClass, String name) {
                  Constructor
          <? extends TestCase> constructor;
                          .
                   }
          /**
               * Constructs a TestSuite from the given class. Adds all the methods
               * starting with "test" as test cases to the suite.
               * Parts of this method were written at 2337 meters in the Hueffihuette,
               * Kanton Uri
               
          */

               
          public TestSuite(final Class<? extends TestCase> theClass) {
                     
                   }
                從來沒想過注釋中也可以加入如此個性化的東西,我們整天都在爭辯到底要不要寫注釋,沒想到人家已經寫出了如此美妙的注釋。如果人人的注釋都寫成這樣,誰還會反對呢?
                從這些注釋中,我們也可以看出作者當時的心情是多么的輕松,愉悅。寫代碼對他們來說完全是一種享受,以至于能寫出如此美妙的注釋。反觀我們,寫代碼就是一種工作,都是一本正經的。難怪寫出的注釋都是千篇一律,寫了等于沒寫。
                所以歸根到底還是一個心態問題。
          posted on 2007-09-25 09:27 Aaron.Chu 閱讀(344) 評論(1)  編輯  收藏

          FeedBack:
          # re: 世界上最美的注釋
          2008-12-12 15:10 | 郁悶
          B了T了的。。。。服了。正在看該死的junit的源碼。。。。  回復  更多評論
            

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          <2007年9月>
          2627282930311
          2345678
          9101112131415
          16171819202122
          23242526272829
          30123456

          留言簿(5)

          隨筆檔案(57)

          相冊

          友情鏈接

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 文化| 岢岚县| 沽源县| 万盛区| 永顺县| 兰坪| 图木舒克市| 宁陕县| 双辽市| 宣恩县| 南充市| 林周县| 汉阴县| 阿拉善左旗| 万源市| 仁怀市| 北流市| 湘阴县| 正阳县| 吉安县| 凌海市| 彰化市| 独山县| 禹州市| 宁安市| 双城市| 温泉县| 海丰县| 公主岭市| 英吉沙县| 竹山县| 基隆市| 邵武市| 托克逊县| 邹平县| 临桂县| 元阳县| 临汾市| 仙居县| 张家港市| 津市市|