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


当前回答

#define SHIT_HAPPENED (BASE + 1)   /* generic shit happened */

其他回答

 /**
   * Returns cookies according to the filters specified.
   * 
   * @return array  Cookies!  Nom nom nom nom nom.
   */
 public function data_getCookies($uid, $name) {

在facebook api的某个地方。

i++; //increment i

消毒:

//Forward declarations:

class X {}; // TODO: Remove {}  ! When we get X defined....
//MailBody builders for two outgoing messages
StringBuilder hanz = new StringBuilder();
StringBuilder franz = new StringBuilder();

当我读到这篇文章时,我仍然会笑出声来……

// Oh crap, i think i'm gonna yack

随后不久又有:

// TODO: end this lunacy