Loading...

最强大的代码注释

September 24th, 2010 Leave a comment Go to comments

在多人 project 里, 代码注释是必不可少的东西, 通常注释都是解释此段程序的用途, 但下面这段注释却让人啼笑皆非:

//
// Dear maintainer:
//
// Once you are done trying to 'optimize' this routine,
// and have realized what a terrible mistake that was,
// please increment the following counter as a warning
// to the next guy:
//
// total_hours_wasted_here = 32
//

更多例子请见此帖.

(original post via walking randomly)

Share and Enjoy:
  • Google Bookmarks
  • del.icio.us
  • Facebook
  • FriendFeed
  • Twitter
  • 豆瓣
Categories: Brainstorm, Informatics, Trivia Tags:
  1. May 15th, 2011 at 03:25 | #1

    的确很强大!

  2. October 11th, 2011 at 04:53 | #2

    呵呵,有意思的程序员们~

  1. No trackbacks yet.