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


当前回答

$this->getSelect()->where ('main_table.product_id = -1'); // Mom, Dad... sorry

其他回答

// Fuck.

,……

// This code worked before, but my cat decided to take a trip across my keyboard...
//Not a bug, parameter position can change..., if you think this is wrong, you are in fact wrong.
// this is really complicated

没有其他评论了

简单但有效的注释,在一些不太安全的c++代码之前

// yikes
// Added because boss changed his mind : 20020111,20020501,20020820, ...
// Commented out because boss changed his mind : 20020201,20020614,20020908, ...

在ETL脚本之间的主要黑客RPG数据库和SQL Server一个。我大概有10到20次这样的评论……