The Brave Programmer - Blogging and coding
Not for the faint hearted
 

Blog Posts From The Brave Programmer

Minimize

Some of the funniest code comments

Oct 8

Written by:
2010/10/08 09:39 AM  RssIcon

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.

Tags:
Categories:
blog comments powered by Disqus
 
Blog Updates Via E-mail
  Blog Updates Via E-mail
Minimize

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

Print  
 

 

Latest Comments
  Latest Comments
Minimize
Powered by Disqus

Sign up with Disqus to enjoy a  surprise box of features

Print  
 
Blog Roll
  Blog Roll
Minimize
Print  
 
Categories
  Categories
Minimize
Print  
 
<h1>Search Blogs From The Brave Programmer</h1>
 

Search Blogs From The Brave Programmer

Minimize
Print  
 
Archive
  Archive
Minimize
Archive
<April 2024>
SunMonTueWedThuFriSat
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011
Monthly
Go
Print  
 
<h1>News Feeds (RSS)</h1>
 

News Feeds (RSS)

Minimize
Print  
 

Follow robertbravery on Twitter

Blog Engage Blog Forum and Blogging Community, Free Blog Submissions and Blog Traffic, Blog Directory, Article Submissions, Blog Traffic

View Robert Bravery's profile on LinkedIn

Mybyte

 

Robert - Find me on Bloggers.com

Tags
  Tags
Minimize
Print  
 
Contact Us Now
  Contact Us Now
Minimize
 

Email  us now or call us on 082-413-1420,  to host your website.

We design and develop websites. We develop websites that make a difference. We do Dotnetnuke Module development.

Web Masters Around The World
Power By Ringsurf
Print