你遇到过的源代码中最好的注释是什么?
当前回答
我最喜欢的是已故的Paul DiLascia:
//作者:如果这段代码工作,它是由Paul DiLascia写的。如果不是,我就不知道是谁写的了。
其他回答
<!-- THIS IS THE MAIN CONFIGURATION FILE FOR THE ENTIRE BLOODY DIRECTORY -->
<!-- WHATEVER YOU DO, DO NOT EDIT THIS FILE WITHOUT TALKING TO ME FIRST -->
<!-- I'M SERIOUS -->
<!-- (scroll down) -->
我刚刚在一些遗留代码中发现了这个..
'CANNOT JUST QUIT!
在XSLT文件的头文件中:
DON'T TOUCH THIS SCRIPT -> XSLT is like arcane, black magic
/* My lawyer told me not to reveal */
* ...and don't just declare it volatile and think you've solved
* the problem. You young punks think you know what volatile
* means... why in my day we had to cast it volatile uphill
* both ways, and the code still didn't work! Whippersnappers...