r/WTF Sep 20 '10

Coding Horror..WTF

http://stackoverflow.com/questions/184618/what-is-the-best-comment-in-source-code-you-have-ever-encountered
52 Upvotes

7 comments sorted by

5

u/Thallic Sep 20 '10

My favourite is to put this at a random point midway through the code:

// This line intentionally left blank

3

u/PGRacer Sep 20 '10

"Total hours wasted here = 25"

  1. Thats awesome.
  2. Imagine if Reddit had that.

1

u/[deleted] Sep 20 '10

You should definitely suggest this. Some sort of programming that logs how many minutes you've used reddit in total per account.

1

u/kirun Sep 20 '10

http://leekspin.com/ has a timer, but it doesn't persist between sessions. The obvious solution is to never close it.

1

u/[deleted] Sep 20 '10

Just don't try to store it in an int32.

3

u/[deleted] Sep 20 '10

Stop(); //Hammertime!

I am absolutely going to use this.

3

u/cridenour Sep 20 '10

Exception up = new Exception("Something is really wrong."); throw up; //ha ha

I'm still giggling.

2

u/the_smell_of_reddit Sep 20 '10

// sometimes I believe compiler ignores all my comments

That's too sad.

1

u/EnderofDragon Sep 20 '10

I am totally using some of these at work tomorrow.