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


当前回答

catch (Exception ex)
{ 
    // just die already.
}

其他回答

从Joomla !来源:

// fudge the group stuff

我最喜欢的是已故的Paul DiLascia:

//作者:如果这段代码工作,它是由Paul DiLascia写的。如果不是,我就不知道是谁写的了。

// insert comment here
On error resume next 'because nothing will ever go wrong!

当我注释掉我认为不再有用的代码块,但我可能是错的(因此没有删除它们),我有时会在它们之前

// Wilted celery?

这个想法就像芹菜一样枯萎了,但你还是把它放回冰箱里。我只知道十年后会有人看到这些评论,说什么鬼?