Top 45 Best Comments In Source Code I Ever Encountered - LoudProgrammer

Top 45 Best Comments In Source Code I Ever Encountered

In computer programming, a comment is a programmer-readable explanation or annotation in the source code of a computer program.

They are added with the purpose of making the source code easier for humans to understand, and are generally ignored by compilers and interpreters.

The syntax of comments in various programming languages varies considerably.

Comments are sometimes processed in various ways to generate documentation external to the source code itself by documentation generators.

They can also be used for integration with source code management systems and other kinds of external programming tools.

In my life as a web developer, here are some of the 45 funniest source code comments I encountered.

Have fun and feel free to add yours in the comments section.


 * Dear Maintainer
 * Once you are done trying to ‘optimize’ this routine,
 * and you have realized what a terrible mistake that was,
 * please increment the following counter as a warning
 * to the next guy.
 * total_hours_wasted_here = 73
 * undeclared variable, error on line 0


// Autogenerated, do NOT edit. All changes will be undone.


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


//When I wrote this, only God and I understood what I was doing
//Now, God only knows


stop(); // Hammertime!


// sometimes I believe compiler ignores all my comments


// 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.


// somedev1 -  6/7/02 Adding temporary tracking of Login screen
// somedev2 -  5/22/07 Temporary my ass


// drunk, fix later


// Magic. Do not touch.


#define TRUE FALSE
The following two tabs change content below.
Geoffrey is a lead software developer, author and writer. He writes code from scratch and frequents GitHub. He also writes and talks about technology trends, small business tips and software developer productivity hacks. He is no coffee addict.


Leave a Reply

Your email address will not be published. Required fields are marked *