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


当前回答

private int mousycounter = 0; //Not really a counter

其他回答

// This interface defines method signatures<br>
interface IWhatever { ... }
try {

}
catch (SQLException ex) {
    // Basically, without saying too much, you're screwed. Royally and totally.
}
catch(Exception ex)
{
    //If you thought you were screwed before, boy have I news for you!!!
}

我一直很喜欢Paul DiLascia在他的文件头中写的:

// If this code works, it was written by Paul DiLascia. If not, I don't know
// who wrote it
DataRow[] foundrows = FilterCalendarEntriesBecauseDotNETIsFuckedUp(tbtemp,CalDate);

不是注释,而是一个有趣的函数名

// this comment included for the benefit of anyone grepping for swearwords: shit.