56 Funny Code Comments That People Actually Wrote
These are actually in a code base somewhere
5 min readSep 18, 2020
Code comments are a human-readable explanation of what a computer program does. They are added to make the code easier for humans to understand.
Well, in this article, you will see how code commenting can be funny, too. Here is a list of comments that were actually written in the code.
1.
/*
* 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
*
2.
Exception up = new Exception("Something is really wrong.");throw up; //ha ha
3.
// When I wrote this, only God and I understood what I was doing// Now, God only knows
4.
// sometimes I believe compiler ignores all my comments
5.
// 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…