Reply
Funny code comments
Old 02-20-2008, 04:08 PM Funny code comments
Experienced Talker

Posts: 43
Name: Mike
Has anyone some funny comments to share that they wrote or saw in other people's source code? Perhaps this has been covered here in another thread, but a search didnot yield it.

A few of mine :
Code:
' did the plugin find any files? if not ..WHAT THE HELL ARE WE DOING HERE
At this point, obviously, the program should not be executing here.

Code:
' okay, have there any Temporary files been created?
' If so, obliterate them please
..right before the seek and destroy of temp files.

Code:
a = 0 'REMEMBER
Like a god booming in your ear, so you don't forget...

Code:
news = u - ch ' if this is minus then we have a problem
Meaning: if this is negative ..

And my VB error code intercepts would almost alway be something like this:

Code:
On Error GoTo Hell
<code> 

Hell:
<error handling>
or

Code:
On Error GoTo Doctor
<code> 

Doctor:
<error handling>
Mr.Mouse is offline
Reply With Quote
View Public Profile Visit Mr.Mouse's homepage!
 
Sponsored Links (We share ad revenue):
 
Old 02-25-2008, 11:56 PM Re: Funny code comments
Novice Talker

Posts: 6
haha some people in my class had comments like /* awww its 4am and cant get this **** workign!!!! IM TIREED!!!!*/
iliketocode is offline
Reply With Quote
View Public Profile
 
Old 03-11-2008, 05:52 PM Re: Funny code comments
Average Talker

Posts: 19
Windows 2000 source code:

Code:
' Do not change tabs to spaces. It f**ks the Build. You WILL be killed.
__________________
Brandon Doyle
http://doylesoft.com
doylesoft is offline
Reply With Quote
View Public Profile
 
Old 03-18-2008, 12:35 PM Re: Funny code comments
Extreme Talker

Posts: 154
Name: Tim
i've never thought of doing that im gonna give it a go in my next site lol
__________________
My Website.. www.timothyblake.com/
My Portfolio.. gallery
timothynblake is offline
Reply With Quote
View Public Profile
 
Old 03-19-2008, 10:48 AM Re: Funny code comments
mork29's Avatar
Extreme Talker

Posts: 243
Name: Keith Yelnick
At the top of a particularly convoluted and otherwise completely uncommented code:
// Abandon all hope, ye who enter here.
I'm in the habit of marking twisty, head-bending sections of code with a comment like:
// here be dragons

Also check out this site for fun windows 2k comments:http://www.kuro5hin.org/story/2004/2/15/71552/7795

Disclaimer: The above were stolen off of some unremembered site

Last edited by mork29 : 03-19-2008 at 10:49 AM.
mork29 is offline
Reply With Quote
View Public Profile
 
Old 03-28-2008, 11:02 PM Re: Funny code comments
Novice Talker

Posts: 4
Name: AJ
This is great!
ajhiort is offline
Reply With Quote
View Public Profile
 
Old 03-29-2008, 12:17 AM Re: Funny code comments
Skilled Talker

Posts: 76
Name: David Howland
Location: New England
I once stuck a lengthly comment to my java instructor about the uselessness of the code we were writing, just to see if she actually read all our code like she claimed she did. Never heard jack about it.
davidhowland14 is offline
Reply With Quote
View Public Profile Visit davidhowland14's homepage!
 
Old 03-29-2008, 07:44 AM Re: Funny code comments
starlord's Avatar
Extreme Talker

Posts: 210
Name: Darran
I was trying to get some php script that a friend of mine bought working once and after 3 attempts of running their installer I thought I'd have a look at the code to figure out what was wrong ... and line that said....

// give in this will never work //

so I did

Starlord
starlord is offline
Reply With Quote
View Public Profile
 
Old 03-31-2008, 05:56 PM Re: Funny code comments
JeremyMiller's Avatar
Full-Time TeraTasker

Posts: 637
Name: Jeremy Miller
Location: Reno, NV
I confess to adding a comment to some code once, that was along the lines of

PHP Code:
function fName() {
/* WHAT WAS I THINKING HERE???  Doesn't seem to do anything...Need to check.
   //questionable code
*/
 //code that worked.

After commenting it out, everything worked fine, so who knows what I was thinking??

lol


I remember seeing in some open source project a comment along these lines:

//Yeah, there are more efficient ways to do this. Bite me.

That one gave me a good laugh.

Most irritating thing I ever encountered was someone so enamored with themselves that they actually named the variables after themself. $brian -- I hate you dude.
__________________
Jeremy Miller - TeraTask Technologies, LLC
Content Farmer - Automated Posting for Content & Blog Sites
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 04-04-2008, 12:54 AM Re: Funny code comments
wayfarer07's Avatar
Extreme Talker

Posts: 217
Name: Abel Mohler
Location: Asheville, North Carolina USA
I usually write things like: "Microsoft is awesome!" in my CSS files. Of course I am kidding.
__________________
Go FREELANCE--------------------------------Hire Me
wayfarer07 is offline
Reply With Quote
View Public Profile
 
Old 04-08-2008, 05:28 PM Re: Funny code comments
Novice Talker

Posts: 11
Name: Tortoise
Visual basic code gives me the chills
Tortoise is offline
Reply With Quote
View Public Profile
 
Old 04-11-2008, 12:20 AM Re: Funny code comments
Average Talker

Posts: 18
Name: TK
Not especially humorous, but I found that using figlets created by Email Effects makes it very fast to locate major sections of long code. Other programmers laugh at it for some reason though. :-\

Code:
/*__      __   _ _         _         ___  ___
  \ \    / / _(_) |_ ___  | |_ ___  |   \| _ )
   \ \/\/ / '_| |  _/ -_) |  _/ _ \ | |) | _ \
    \_/\_/|_| |_|\__\___|  \__\___/ |___/|___/ */

Last edited by zxcvbnm60 : 04-11-2008 at 12:22 AM.
zxcvbnm60 is offline
Reply With Quote
View Public Profile
 
Old 04-14-2008, 01:51 PM Re: Funny code comments
Novice Talker

Posts: 12
lol there's a new application of ascii art. Takes me back to the BBS days
awatson is offline
Reply With Quote
View Public Profile
 
Old 04-14-2008, 02:38 PM Re: Funny code comments
Webmaster Talker

Posts: 560
Haha, funny comments often make its way into the code during testing and development but are usually removed when production/finalization rolls around.

Matt
170 Designs is offline
Reply With Quote
View Public Profile
 
Old 04-14-2008, 07:41 PM Re: Funny code comments
Novice Talker

Posts: 10
Name: no
From the original UNIX source:

Code:
   /*
    * If the new process paused because it was
    * swapped out, set the stack level to the last call
    * to savu(u_ssav).  This means that the return
    * which is executed immediately after the call to aretu
    * actually returns from the last routine which did
    * the savu.
    *
    * You are not expected to understand this.
    */
jaymack is offline
Reply With Quote
View Public Profile
 
Old 04-14-2008, 08:23 PM Re: Funny code comments
Gilligan's Avatar
DEAD Good Coder

Posts: 1,099
Name: Stefan
Location: London, UK
lol

Code:
' Do not change tabs to spaces. It f**ks the Build. You WILL be killed.
That made me laugh
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 04-14-2008, 08:34 PM Re: Funny code comments
Sneakyheathen's Avatar
Skilled Talker

Posts: 70
Quote:
Originally Posted by zxcvbnm60 View Post
Not especially humorous, but I found that using figlets created by Email Effects makes it very fast to locate major sections of long code. Other programmers laugh at it for some reason though. :-\

Code:
/*__      __   _ _         _         ___  ___
  \ \    / / _(_) |_ ___  | |_ ___  |   \| _ )
   \ \/\/ / '_| |  _/ -_) |  _/ _ \ | |) | _ \
    \_/\_/|_| |_|\__\___|  \__\___/ |___/|___/ */

That's an awesome idea! When I make errors, I generally write things like
Code:
//FSCKED UP HERE! ARE YOU AN IDIOT!?

//This doesn't work....figures.

//I hate PHP! Okay not really.
__________________
http://www.deadlyclever.com - Personal Blog
http://www.supersophomore.com - Teen Site
Sneakyheathen is offline
Reply With Quote
View Public Profile Visit Sneakyheathen's homepage!
 
Old 04-19-2008, 05:04 PM Re: Funny code comments
Moelman's Avatar
Moel-sama

Posts: 1,284
Quote:
Originally Posted by jaymack View Post
From the original UNIX source:

Code:
   /*
    * If the new process paused because it was
    * swapped out, set the stack level to the last call
    * to savu(u_ssav).  This means that the return
    * which is executed immediately after the call to aretu
    * actually returns from the last routine which did
    * the savu.
    *
    * You are not expected to understand this.
    */
Quote:
Originally Posted by zxcvbnm60 View Post
Not especially humorous, but I found that using figlets created by Email Effects makes it very fast to locate major sections of long code. Other programmers laugh at it for some reason though. :-\

Code:
/*__      __   _ _         _         ___  ___
  \ \    / / _(_) |_ ___  | |_ ___  |   \| _ )
   \ \/\/ / '_| |  _/ -_) |  _/ _ \ | |) | _ \
    \_/\_/|_| |_|\__\___|  \__\___/ |___/|___/ */
Nice ones!
Moelman is offline
Reply With Quote
View Public Profile Visit Moelman's homepage!
 
Old 04-20-2008, 12:58 AM Re: Funny code comments
serandfae's Avatar
Entropy enthusiast

Posts: 3,639
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Whenever I've had to put in conditional comments to fix for IE, I usually give the section a class name like, "IEsux" or "billgatesisaf*g". I find that there is some catharsis in that.

tim
__________________
Springs hop eternal in the hearts of the eccentric....
E-GADS! (Evil Genius' Art and Design Studio) http://bellsouthpwp2.net/j/a/jam331
serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 04-21-2008, 12:19 PM Re: Funny code comments
VirtuosiMedia's Avatar
Ultra Talker

Latest Blog Post:
Web Development Business Tips
Posts: 411
PHP Code:
/*Executing this code will probably fail.
Understanding this code will probably fail.
Fixing this code will probably fail.
Contacting customer support about this code will result in being rerouted to
India and talking to an 85-year-old grandmother about knitting and curry
recipes...and will probably fail.
Gaining a promotion at your job as a result of your being able to execute,
understand, fix, or contact customer support about this code will probably fail.
Offering my apologies as a developer to you as the consumer about this
horribly hacked code and your inability to get a promotion at work because of
it will not fail; it just won't happen.
Thank you for purchasing our product. For customer support, call 1.800.KNITNOW*/ 
VirtuosiMedia is offline
Reply With Quote
View Public Profile Visit VirtuosiMedia's homepage!
 
Sponsored Links (We share ad revenue):
 
Reply     « Reply to Funny code comments