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


当前回答

好吧,这些是我的,所以WTF是我,正如CodingHorror所说:

//#region Code for weird cases - do you really want to know?

我曾经在一些ASP中留下了这样的评论:

' Commented out following code, don't delete for when [CustomerName] changes his mind

碰巧,[CustomerName]没有改变他的想法,但他确实有访问web服务器,他确实找到了那行…

其他回答

//When I wrote this, only God and I understood what I was doing
//Now, God only knows
/////////////////////////////////////// this is a well commented line
// No women, no children... What movie???
options.BatchSize = 300; //Madness? THIS IS SPARTA!
// simply copied from another code