Very very funny source code comments..

A place for Ogre users to discuss non-Ogre subjects with friends from the community.
User avatar
syedhs
Silver Sponsor
Silver Sponsor
Posts: 2703
Joined: Mon Aug 29, 2005 3:24 pm
Location: Kuala Lumpur, Malaysia
x 51

Very very funny source code comments..

Post by syedhs »

Funny Source Code Comments

Something which we all can relate to :mrgreen:

My favorite being the funniest:-

Code: Select all

// John! If you'll svn remove this once more,
// I'll shut you, for God's sake!
// That piece of code is not “something strange”!
// That is THE AUTH VALIDATION.
And I think the comment below is valid comment (not exactly funny). The code was really from Paul DeLascia (I hope the name is correct). Paul is a famous book writer and programmer.

Code: Select all

// If this code works, it was written by Paul. If not, I don't know who wrote it
Edit: You can also follow the stackoverflow link.
Last edited by spacegaier on Wed Jul 20, 2011 10:47 am, edited 1 time in total.
Reason: fixed the lnik
A willow deeply scarred, somebody's broken heart
And a washed-out dream
They follow the pattern of the wind, ya' see
Cause they got no place to be
That's why I'm starting with me
User avatar
spacegaier
OGRE Team Member
OGRE Team Member
Posts: 4308
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 137

Re: Very very funny source code comments..

Post by spacegaier »

Link not working :( . I think I fixed it though...

Really enjoyed the comments! Will try to re-use some of them in my future code :D .
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
User avatar
Kojack
OGRE Moderator
OGRE Moderator
Posts: 7157
Joined: Sun Jan 25, 2004 7:35 am
Location: Brisbane, Australia
x 538

Re: Very very funny source code comments..

Post by Kojack »

I was once maintaining an internal app for a company, it contained 2 scary comments (well, more, but I can't remember them):
"This is not the lazy loader you think it is" (exact wording, I've remembered that one for 11 years)
"I'm not sure why this is here, but it stops working without it" (paraphrased, can't remember the exact wording)

The app was a project and timesheet manager, written in vb5 and connecting to an access database. It was used to keep currently unassigned staff busy and to test out new employees, which was bad because it was a horrible mess (no documentation, no source control, no coding standard, no testing, no design, each coder did things in a different way, so the same functionality was implemented differently in each sub section of the app) and it was also used by every team in the company to manage their projects and staff pay.
User avatar
Sslaxx
Greenskin
Posts: 104
Joined: Thu Apr 27, 2006 12:37 pm
Location: Malvern, Worcs., UK

Re: Very very funny source code comments..

Post by Sslaxx »

Kojack wrote:I was once maintaining an internal app for a company, it contained 2 scary comments (well, more, but I can't remember them):
"This is not the lazy loader you think it is" (exact wording, I've remembered that one for 11 years)
"I'm not sure why this is here, but it stops working without it" (paraphrased, can't remember the exact wording)

The app was a project and timesheet manager, written in vb5 and connecting to an access database. It was used to keep currently unassigned staff busy and to test out new employees, which was bad because it was a horrible mess (no documentation, no source control, no coding standard, no testing, no design, each coder did things in a different way, so the same functionality was implemented differently in each sub section of the app) and it was also used by every team in the company to manage their projects and staff pay.
Sometimes you've got to be grateful when shit like that works, no matter how horrifyingly bad it's coded.
Stuart "Sslaxx" Moore