Click here to Skip to main content
13,258,269 members (52,005 online)
Click here to Skip to main content
Add your own
alternative version


41 bookmarked
Posted 24 Jun 2001

Amusing article comments

, 26 Jun 2001
Rate this:
Please Sign up or sign in to vote.
A collection of amusing comments found inside production code
<!-- Add the rest of your HTML here -->


There have been a number of threads in the Lounge about amusing comments found in code. I was thinking that it would be fun to have a page devoted to the most amusing comments found in production code.

Be warned that posting code and or comments from your company's code may breach confidentiality or copyright, so ensure you have permission to post the comment text before doing so.

Please add your amusing comments in the discussion thread below. Periodically I'll sweep through the comments and incorporate them into the article itself.

The Pick of the Bunch so far.

Malcolm McMahon I'll always remember with affection the message from a compiler on an old mini (for a peculiar language of its own). Instead of No Errors it came up with the, much more realistic,

None of your errors have been found

Christian Graus

Here is a block of comments running between me and another developer here (Jono) over the course of a few months.

//Chunker File Format calls
//Jono's really cool stuff for sergei

//of course everything I write is *COOL*, but these chunks are worth mentioning...

// Some of us are more insecure than others, I guess...... 

// Damn your black heart Christian Graus....

I'm not sure how he knew it was me, but I nearly fell over laughing when I found his reply....

Another comment from Jono

//just ask jl if you can't understand that last line, I wrote it and I don't understand it.... 

And a block I wrote after having to fix the portion of the code that remembered if the file had been saved since modification for about the 100th time because other people made changes to fit things they were doing

// I am not an unreasonable person, but if anyone, and I mean ANYONE, ever has need to
// change the code below and/or put ifdefs into it, please, please, PLEASE ask me to do it
// or leave your name here. 

// If this code gets changed without a name being placed here, and the MRU or lastfilesaved 
// stops working as a result, I will compensate by killing everyone, in alphabetical order 
// of surname. Yes, Ben goes first, even though he doesn't touch the code. This is how
// irrational I am feeling on the subject.

J. Schacherl

On a previous project, a colleague inserted a messagebox for our beta testers to track down some rare error condition. It says "If this comes up, please call Eugen at phone xxxxx." Unfortunately he forgot to remove it in release version so every now and then customers called our hotline and asked "WHO is this Eugen and WHY should I call him?!?!" Line in a log file: "Data successfully deleted (hopefully)."


Favourite bad pointer values in hex:

  • 0xbaadf00d
  • 0xBeefBabe
  • 0xfeedface
  • 0xdeadc0de
  • 0xdeadbeef

Pavlos Touboulidis

There's an application that provides free internet access. One time, it hanged so I had to terminate (kill) it. It died ok, but it poped up a MessageBox saying:


Text: "XXX.exe was forced to terminate...Due to a Hacking Attempt or because of a serious error. If you DID NOT try to CRACK XXX.exe Please Notify XXX Support!!! Else Don't Bother..."

Rick York

I saw one of my all time favorites years ago in Norton's Programming Windows book. It was in the default windows procedure, DefWindowProc. The author used a goto and the target label was :


I laughed pretty hard when I saw this.

Greg Strauss:

I once had a manager who had fairly strict on is source code standards. He had even written perl scripts that would walk through source code to find breeches in the "standards".

Once of his pet peeves were variable names that were too long... so I came across some old C++ code with the following variable declaration:

int nThisVariableDoesntDoAnythingButIsOnlyHereToPissOffTheCodePolice = 0; 

Richard Cunday:

The strangest comment I ran across, back in my mainframe development days, was the answer to a screen prompted question which an operator would receive after submitting a batch job incorrectly. The screen prompt displayed the following message:

What killed the monkey in "Raiders of the Lost Ark?"

The answer did not appear on the operator screen but in the source code comments. Correct Answer - Bad Date

Dave Goodman:

On an Alpha Micro computer system I once saw the following error message:

It is a definite no-no to run BITMAP as a user command. Your nose will grow, your
lawn will die, your hair will fall out, and your first-born will marry an aardvark. Shame 
on you!

Anonymous contributions:

I was disassmebling some code one time when I came across a very amusing message: "If you can read this then you are too damn inquisitive"

The Lifeboat C compiler on the Apple II would display the following message when there were too many errors:

I'm so confused! Check you source code"


This is a quick hack job
but since I'm leaving in
2 days... have fun.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Chris Maunder
Founder CodeProject
Canada Canada
Chris is the Co-founder, Administrator, Architect, Chief Editor and Shameless Hack who wrote and runs The Code Project. He's been programming since 1988 while pretending to be, in various guises, an astrophysicist, mathematician, physicist, hydrologist, geomorphologist, defence intelligence researcher and then, when all that got a bit rough on the nerves, a web developer. He is a Microsoft Visual C++ MVP both globally and for Canada locally.

His programming experience includes C/C++, C#, SQL, MFC, ASP, ASP.NET, and far, far too much FORTRAN. He has worked on PocketPCs, AIX mainframes, Sun workstations, and a CRAY YMP C90 behemoth but finds notebooks take up less desk space.

He dodges, he weaves, and he never gets enough sleep. He is kind to small animals.

Chris was born and bred in Australia but splits his time between Toronto and Melbourne, depending on the weather. For relaxation he is into road cycling, snowboarding, rock climbing, and storm chasing.

You may also be interested in...

Comments and Discussions

QuestionRepenting Pin
PB 369,78321-Aug-13 6:36
memberPB 369,78321-Aug-13 6:36 
Question"Norton's Programming Windows" Pin
Axel Rietschin5-Nov-11 4:01
memberAxel Rietschin5-Nov-11 4:01 
QuestionBreeches? Pin
viaducting1-Mar-11 5:29
memberviaducting1-Mar-11 5:29 
GeneralMy vote of 5 Pin
Nithin Sundar14-Feb-11 20:14
memberNithin Sundar14-Feb-11 20:14 
GeneralMy guess Pin
Simon Clifton Cardenas4-Jan-11 21:41
memberSimon Clifton Cardenas4-Jan-11 21:41 
GeneralFunny Comments Pin
Dave Bacher24-Apr-06 12:11
memberDave Bacher24-Apr-06 12:11 
GeneralRe: Funny Comments Pin
Mark J. Miller9-Apr-08 10:19
memberMark J. Miller9-Apr-08 10:19 
GeneralOld video game Pin
Lilith.C10-Mar-06 5:59
memberLilith.C10-Mar-06 5:59 
GeneralPress F1 to continue. Pin
Bikash Rai14-Oct-05 5:02
memberBikash Rai14-Oct-05 5:02 
Anyone heard this one...

Keyboard Error. Press F1 to continue... Laugh | :laugh: Laugh | :laugh: Laugh | :laugh:

Bikash Rai
The Genius of a true fool is that he can mess up a fool proof plan.
GeneralComments in Latin Pin
Don Clugston7-Jun-05 19:51
memberDon Clugston7-Jun-05 19:51 
GeneralAnother Funny Comment Pin
Xiot17-Mar-05 13:37
memberXiot17-Mar-05 13:37 
Generalmust have for any goto statement Pin
MadHatter ¢20-Nov-04 17:49
MadHatter ¢
20-Nov-04 17:49 
GeneralEaster eggs gone bad... Pin
Anonymous4-Mar-04 17:26
sussAnonymous4-Mar-04 17:26 
GeneralProgrammers riddle Pin
FruitBatInShades3-Feb-04 13:30
memberFruitBatInShades3-Feb-04 13:30 
GeneralRe: Programmers riddle Pin
John R. Shaw20-Jun-11 12:19
memberJohn R. Shaw20-Jun-11 12:19 
Question0-based or 1-based? Pin
Alexander Ruscle13-Dec-03 4:27
memberAlexander Ruscle13-Dec-03 4:27 
GeneralVariable name with explanatory comment Pin
Anonymous15-Oct-03 21:12
sussAnonymous15-Oct-03 21:12 
GeneralMy comment nightmare Pin
NHunicorn6-Aug-03 6:43
memberNHunicorn6-Aug-03 6:43 
Generala bottle beer for Greg Strauss for cool variable Pin
Nikolai Teofilov20-Jun-03 6:31
memberNikolai Teofilov20-Jun-03 6:31 
GeneralCool! Pin
Megan Forbes8-Oct-02 0:41
memberMegan Forbes8-Oct-02 0:41 
General Pin
BonTon6-Sep-02 4:04
memberBonTon6-Sep-02 4:04 
GeneralClickety police ! Pin
Trollslayer27-Jun-03 4:00
memberTrollslayer27-Jun-03 4:00 
GeneralNot a comment, but amusing... Pin
Roger Allen1-Aug-02 6:59
memberRoger Allen1-Aug-02 6:59 
GeneralComputer Randomly Plays Classical Music Q261186 Pin
Philip Fitzsimons10-Jul-02 1:07
memberPhilip Fitzsimons10-Jul-02 1:07 
GeneralRe: Computer Randomly Plays Classical Music Q261186 Pin
Vlad Vissoultchev28-Oct-03 13:03
memberVlad Vissoultchev28-Oct-03 13:03 
GeneralHaiku Error Messages Pin
Richard_D15-May-02 6:28
memberRichard_D15-May-02 6:28 
GeneralFile under: "Not My Job Syndrome" Pin
Codin' Carlos1-May-02 10:03
memberCodin' Carlos1-May-02 10:03 
General0xBADCAB1E... Pin
Furan10-Apr-02 10:00
memberFuran10-Apr-02 10:00 
GeneralGoofy Variable Names Pin
Joel Matthias5-Apr-02 7:20
memberJoel Matthias5-Apr-02 7:20 
GeneralBroken Page Pin
Gackmasta6-Mar-02 2:44
memberGackmasta6-Mar-02 2:44 
GeneralAmiga Pin
Anonymous23-Feb-02 8:57
memberAnonymous23-Feb-02 8:57 
GeneralRe: Amiga Pin
Trollslayer22-Dec-08 14:41
memberTrollslayer22-Dec-08 14:41 
GeneralBBC Micro O/S Pin
Greg Neilson21-Feb-02 6:09
memberGreg Neilson21-Feb-02 6:09 
GeneralGreat Comments Pin
Roger Wright1-Jan-02 16:12
memberRoger Wright1-Jan-02 16:12 
GeneralSecurity Pin
Alex Farber30-Dec-01 5:16
memberAlex Farber30-Dec-01 5:16 
GeneralWindows.h Header File Comment Pin
Nick Parker14-Dec-01 12:13
memberNick Parker14-Dec-01 12:13 
GeneralAnother cool places to look :) Pin
Philip Patrick18-Dec-01 13:06
memberPhilip Patrick18-Dec-01 13:06 
GeneralRe: Another cool places to look :) Pin
J Matthews28-May-02 3:36
memberJ Matthews28-May-02 3:36 
GeneralRe: Another cool places to look :) Pin
Bob Stanneveld18-Mar-04 1:47
memberBob Stanneveld18-Mar-04 1:47 
GeneralFun with testing tools Pin
Michael Dunn8-Nov-01 21:15
memberMichael Dunn8-Nov-01 21:15 
GeneralHmmmmm Pin
Stuart Girvan23-Aug-01 5:18
memberStuart Girvan23-Aug-01 5:18 
Generalfixed soon Pin
peterchen19-Jul-01 0:32
memberpeterchen19-Jul-01 0:32 
GeneralFrom atlbase.h Pin
Michael Dunn17-Jul-01 8:42
memberMichael Dunn17-Jul-01 8:42 
GeneralMS Pin
Anonymous9-Jul-01 11:12
memberAnonymous9-Jul-01 11:12 
GeneralSometimes I worry about these guys... Pin
David Bennett6-Jul-01 6:41
memberDavid Bennett6-Jul-01 6:41 
Shawn V.5-Jul-01 18:58
memberShawn V.5-Jul-01 18:58 
GeneralAssorted Pin
Matt Philmon29-Jun-01 21:12
memberMatt Philmon29-Jun-01 21:12 
GeneralScooby Doo Pin
Anonymous28-Jun-01 7:23
memberAnonymous28-Jun-01 7:23 
GeneralGFE Pin
Norm Almond28-Jun-01 5:19
memberNorm Almond28-Jun-01 5:19 
QuestionPot Head programmers? Pin
James Pullicino27-Jun-01 22:55
memberJames Pullicino27-Jun-01 22:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.171114.1 | Last Updated 27 Jun 2001
Article Copyright 2001 by Chris Maunder
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid