你遇到过的源代码中最好的注释是什么?


当前回答

private static final Logger lager = new Logger();

其他回答

在js代码中:

// hack for ie browser (assuming that ie is a browser)
// TODO: not this

上面写了一个同事迫切需要优化的查询。替他说句话,当时我们几个月都是每周工作70个小时……

public static final void attachListener(Object listener) {

/* ======================= */

// This does nothing, continue searching

/* ======================= */

...

与听众一起痛苦!

// repopulate, slight hax (or strong assumptions :P) below
/*

 ____________________
/                    \
| Jean-Michel Bechet |
| 2002-2009          |
\___  _______________/
    |/
 (o_
 //\
 V_/_


*/