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


当前回答

/*
    FIXME:  why the fuck did anyone ever think this kind of expensive iteration
                    was a good idea?

其他回答

//Time log says you've been here for 15 hours GO HOME, your code is hobo
// fix for groupid > 9 
// if groupid ever gets to 100 everything will break (again)

if (groupid < 10) {
groupid = "0" + groupid;
}

在大学的一次家庭作业中,一位老师特别坚决地要求我们注释代码:

//I wonder if she actually reads these.

当作业被返回时,在注释“是的,我愿意”旁边用红笔写着

Dennis M Ritchie在这里有一个关于一些古老UNIX注释的页面

从一个遗留的Perl CGI脚本:

# This is convoluted and evil, sorry.