/**
     * 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 阅读(329) 评论(1)  编辑  收藏

FeedBack:
# re: 世界上最美的注释
2008-12-12 15:10 | 郁闷
B了T了的。。。。服了。正在看该死的junit的源码。。。。  回复  更多评论
  

只有注册用户登录后才能发表评论。


网站导航:
 
<2007年9月>
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

留言簿(5)

随笔档案(57)

相册

友情链接

搜索

  •  

最新评论

阅读排行榜

评论排行榜