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


当前回答

我在一个充满显式怪异类型转换的函数中见过这段代码:

// Since today's CPUs are really fast, this is dedicated to those who said:
// " You can't use Moore's Law as an excuse to write bad software. "

代码太可怕了:)

其他回答

//this is a crap way to do this but I ran out of patience

DelButton.click(); 
aComment = 'this is not aComment' # this is aComment
class T(object):
    def f(this):
        this is not aComment
// fix for groupid > 9 
// if groupid ever gets to 100 everything will break (again)

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

我发现了这个:

I'm not sure what I did
/* My lawyer told me not to reveal */