Written by:2010/10/08 09:39 AM
I was always taught to comment my code. Most times I forget. The real purpose of commenting code is so that you know what you were trying to do when you come back to it later, and so that someone else might begin to understand your thought processes.
Surfing the internet I found some really funny code comments that you will enjoy. Even if you are not a programmer you will surely get a good laugh out of these.
// When I wrote this, only God and I understood what I was doing
// Now, God only knows // 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 = 25
//// I dedicate all this code, all my work, to my wife, Darlene, who will
// have to support me and our three children and the dog once it gets
// released into the public./*
* You may think you know what the following code does.
* But you dont. Trust me.
* Fiddle with it, and youll spend many a sleepless
* night cursing the moment you thought youd be clever
* enough to "optimize" the code below.
* Now close this file and go play with something else.
*/// I am not sure if we need this, but too scared to delete. //I am not sure why this works but it fixes the problem.// I am not responsible of this code.
// They made me write it, against my will.// I have to find a better job// no comments for you
// it was hard to write
// so it should be hard to read// hack for ie browser (assuming that ie is a browser)/**
* If you don't understand this code, you should be flipping burgers instead.
Find hundreds more at Stackoverflow.
If you have any funnies you would like to share, do leave them in the comments below.
Do you want to receive blog updates via e-mail. Then just click on the link below. You will be redirected to Google's feed burner, where you can fill out a form. Supplying your e-mail address.
The subscription is managed entirely by Google's Feedburner. We cannot and do not collect your email address.
Subscribe to The Brave Programmer by Email
Sign up with Disqus to enjoy a surprise box of features