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


当前回答

if(m_measures =/*=*/ --index)
{
    ....

其他回答

一个可怕的解码补丁(意大利语翻译):

/**
*@return the value 
*@param key: the id of the list of instruments
*@PS this function is a violation of all the laws of the 
*software engineering, 
*commons sense, highway code 
*and ONU decision about the coding.
That sh*t...
*/
// no comments for you
// it was hard to write
// so it should be hard to read

在一些非常蹩脚的vb代码(我知道这都是蹩脚的,但),我发现这是一个空的if控制块中的注释,它说:

If bFound Then
     'I love it when I write kick ass code like this
Else
  .
  .
/**---------START-----------**/

  //  IMPLEMENTATION GOES HERE

/**---------END-----------**/

但没有代码;)

#pragma region Crap that is kept for temporary reasons

    //  Huge chunk of commented code

#pragma endregion