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


当前回答

//If the Current Record is Getting End Dated, We should not create New History Entry. 
//We Just need to Update the Previous History Entry
//If the History is already End Dated and the New Record is now removing End Date, Then 
//We should not update the Previous History End Date. 
//We Just need to Create the New History Record Only.
//Alright.. 
//Alright.... 
//Enough Comments. Code it. :-)

其他回答

我经常看到这种情况:

// TODO make this work
// (c) 2000 Applied Magic, Inc.
// Unauthorized use punishable by torture, mutilation, and vivisection.

啊,我一直很喜欢这个……

//你不需要理解这个

经典。

/*************************** Drag And Drop Section - Start (you should be me to mess with this section)*********************************************/
//Woulda
if(x) {}
//Shoulda
else if(y) {}
//Coulda
else {}