1、See also <一个公司内部文档的链接>之后我再也没动过这段代码。

几年过去了,一个偶然的机会我再次需要维护这段代码,然后发现注释变成了这个样子:

# See also <一个公司内部文档的链接>

# smay 2011.12.5 the link above is no longer valid. New link is here: <....>

# smay 2012.5.9 anyway, I don't think the doc tells you how the code works.

# kgupta 2012.8.21 yes u r right. the doc was totally bogus.

# <我司的VP> 2013.6.11 since the doc is bogus, I re-wrote the code to match the reality.

# <我司的VP> 2013.6.15 no i was wrong. and you are all wrong. the doc was so correct and so does the code. whoever wrote the code in the first place was a genius!

# <我司的VP> can someone tell me how I can get the old revision back? my version doesn't quite work and i don't know why ...

2、# 不要再用 anal 做变量名了# 你们想用 anal 这个缩写来表示analyze(分析),可是 anal 这个单词的意思是……# 我在哪都能看到 anal 这个词!# 请不要再这么做了!# 你们要用就用analyze,或者xbvvzr,要不然用什么其他的都可以。就是别写成 anal_insert 或者 anal_check了# insert是插入的意思,check是检查的意思,自行脑补吧

3、一个很无聊的……

/***

* 1只羊 == one sheep

* 2只羊 == two sheeps

* 3只羊 == three sheeps

* 4只羊 == four sheeps

* 5只羊 == five sheeps

* 6只羊 == six sheeps

* 7只羊 == seven sheeps

* 8只羊 == eight sheeps

* 9只羊 == nine sheeps

* 10只羊 == ten sheeps

* 11只羊 == eleven sheeps

* 12只羊 == twelve sheeps

* 13只羊 == thirteen sheeps

* 14只羊 == fourteen sheeps

* 15只羊 == fifteen sheeps

* 16只羊 == sixteen sheeps

* 17只羊 == seventeen sheeps

* 18只羊 == eighteen sheeps

* 19只羊 == nineteen sheeps

* 20只羊 == twenty sheeps

* 21只羊 == twenty one sheeps

* 22只羊 == twenty two sheeps

* 23只羊 == twenty three sheeps

* 24只羊 == twenty four sheeps

* 25只羊 == twenty five sheeps

* 26只羊 == twenty six sheeps

* 27只羊 == twenty seven sheeps

* 28只羊 == twenty eight sheeps

* 29只羊 == twenty nine sheeps

* 30只羊 == thirty sheeps

* 现在瞌睡了吧,好了,不要再改下面的代码了,睡觉咯~~

*/

还有哪些有趣的代码注释,欢迎评论!

“我们相信人人都可以成为一个IT大神,现在开始,选择一条阳光大道,助你入门,学习的路上不再迷茫。这里是北京尚学堂,初学者转行到IT行业的聚集地。"