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


当前回答

// if the resultMap size is less than or equal to zero
// then the product is added
if (resultMap.size() <= 0)

其他回答

看这个:

'On Error Goto Hell.

我只是发表了这样的评论:

// this control (Resistance) is FUTILE! 

我不止一次使用过这个方法,当我对一个数学公式做了一些不明显的简化时,我不想记录:

//this formula is right, work out the math yourself if you don't believe me
// fix for groupid > 9 
// if groupid ever gets to 100 everything will break (again)

if (groupid < 10) {
groupid = "0" + groupid;
}
/* Please work */