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


当前回答

一个名为monitoring.sh的文件的前两行:

#!/usr/bin/perl
# perl script disguised as a bash script

其他回答

/**
 * Hexadecimal digit
 */
protected $version = -1;
// A Gorgon class - For the love of Zeus don't look directly at it!
// this comment included for the benefit of anyone grepping for swearwords: shit.

这是我今天重构一些代码时发现的一条评论

if( year < 100 ): year += 2000 #lol, Y2K
// TODO: not this

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