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

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

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


          網(wǎng)站導(dǎo)航:
           
          <2007年9月>
          2627282930311
          2345678
          9101112131415
          16171819202122
          23242526272829
          30123456

          留言簿(5)

          隨筆檔案(57)

          相冊

          友情鏈接

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 莱阳市| 新邵县| 海淀区| 眉山市| 永德县| 怀远县| 茂名市| 石棉县| 瓦房店市| 射阳县| 嘉兴市| 绥化市| 台北县| 都兰县| 定南县| 乡宁县| 南华县| 辰溪县| 大同市| 济源市| 扎囊县| 浙江省| 武隆县| 广德县| 晋宁县| 芜湖市| 德州市| 阿瓦提县| 容城县| 繁峙县| 岱山县| 濉溪县| 遂平县| 尚志市| 通榆县| 明溪县| 金平| 清水县| 精河县| 江口县| 新乡市|