Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



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

Posts: 43
Name: Mike
Trades: 0
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!
 
 
Register now for full access!
Old 02-26-2008, 12:56 AM Re: Funny code comments
Novice Talker

Posts: 6
Trades: 0
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, 06:52 PM Re: Funny code comments
Average Talker

Posts: 20
Trades: 0
Windows 2000 source code:

Code:
' Do not change tabs to spaces. It f**ks the Build. You WILL be killed.
__________________
Brandon Doyle

Please login or register to view this content. Registration is FREE
doylesoft is offline
Reply With Quote
View Public Profile
 
Old 03-18-2008, 01:35 PM Re: Funny code comments
Extreme Talker

Posts: 189
Name: Tim
Trades: 0
i've never thought of doing that im gonna give it a go in my next site lol
__________________
Design Blog..
Please login or register to view this content. Registration is FREE

My Website/Portfolio..
Please login or register to view this content. Registration is FREE
timothynblake is offline
Reply With Quote
View Public Profile
 
Old 03-19-2008, 11:48 AM Re: Funny code comments
mork29's Avatar
Extreme Talker

Posts: 242
Name: Keith Yelnick
Trades: 0
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 11:49 AM..
mork29 is offline
Reply With Quote
View Public Profile
 
Old 03-29-2008, 12:02 AM Re: Funny code comments
Novice Talker

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

Posts: 93
Name: David Howland
Location: New England
Trades: 0
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, 08:44 AM Re: Funny code comments
starlord's Avatar
Extreme Talker

Posts: 209
Name: Darran
Trades: 5
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
__________________
##
Please login or register to view this content. Registration is FREE
##
Please login or register to view this content. Registration is FREE
##

Please login or register to view this content. Registration is FREE
starlord is offline
Reply With Quote
View Public Profile
 
Old 03-31-2008, 06:56 PM Re: Funny code comments
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
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

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 04-04-2008, 01:54 AM Re: Funny code comments
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
I usually write things like: "Microsoft is awesome!" in my CSS files. Of course I am kidding.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 04-08-2008, 06:28 PM Re: Funny code comments
Novice Talker

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

Posts: 18
Name: TK
Trades: 0
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 01:22 AM..
zxcvbnm60 is offline
Reply With Quote
View Public Profile
 
Old 04-14-2008, 02:51 PM Re: Funny code comments
Average Talker

Posts: 18
Trades: 0
lol there's a new application of ascii art. Takes me back to the BBS days
__________________
30 Day Money-Back Guarantee -
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

awatson is offline
Reply With Quote
View Public Profile
 
Old 04-14-2008, 03:38 PM Re: Funny code comments
Webmaster Talker

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

Matt
__________________

Please login or register to view this content. Registration is FREE
170 Designs is offline
Reply With Quote
View Public Profile
 
Old 04-14-2008, 08:41 PM Re: Funny code comments
Novice Talker

Posts: 10
Name: no
Trades: 0
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, 09:23 PM Re: Funny code comments
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
lol

Code:
' Do not change tabs to spaces. It f**ks the Build. You WILL be killed.
That made me laugh
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 04-14-2008, 09:34 PM Re: Funny code comments
Sneakyheathen's Avatar
Ultra Talker

Posts: 346
Name: Corey Freeman
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
Sneakyheathen is offline
Reply With Quote
View Public Profile Visit Sneakyheathen's homepage!
 
Old 04-19-2008, 06:04 PM Re: Funny code comments
Moelman's Avatar
Moel-sama

Latest Blog Post:
PC Games to Keep an Eye On
Posts: 1,283
Trades: 0
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!
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
Moelman is offline
Reply With Quote
View Public Profile Visit Moelman's homepage!
 
Old 04-20-2008, 01:58 AM Re: Funny code comments
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 8,936
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
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
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 04-21-2008, 01:19 PM Re: Funny code comments
VirtuosiMedia's Avatar
Web Design Made Simple

Posts: 1,228
Trades: 0
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!
 
Reply     « Reply to Funny code comments

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.71074 seconds with 12 queries