Jump to content

Funny Code Comments

- - - - -

  • Please log in to reply
6 replies to this topic

#1
stevie754

stevie754

    Programmer

  • Members
  • PipPipPipPip
  • 110 posts
I have seen a few of these while searching for code on the internet

// 

// Dear maintainer:

// 

// Once you are done trying to 'optimize' this routine,

// and have realized what a terrible mistake that was,

// please increment the following counter as a warning

// to the next guy:

// 

// total_hours_wasted_here = 39

// 


Whats the best code comments you's have ever seen either personal experience or through the magic of internet

#2
gregwarner

gregwarner

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 853 posts
  • Location:Arkansas
super(string); // Haha, superstring theory

Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.

– Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid


#3
amrosama

amrosama

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 8,674 posts
in wordpress empty indexes theres only this comment:

/*

 * Silence is golden

 */


yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
www.amrosama.com | the unholy methods of javascript

#4
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
  • Location:New York, NY

//no comment



#5
DarkLordofthePenguins

DarkLordofthePenguins

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 409 posts
Look at some of Larry Wall's source code.
Programming is a journey, not a destination.

#6
Guest

Guest

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 3,414 posts
This isn't a comment; it's actually code.
*BSD shutdown.c, line 93ish:
void die_you_gravy_sucking_pig_dog(void);
Sources:
src/sbin/shutdown/shutdown.c - annotate - 1.36
gitweb.dragonflybsd.org Git - dragonfly.git/blob - sbin/shutdown/shutdown.c
http://www.freebsd.o...c?annotate=1.26
Root Beer == System Administrator's Beer
Download the new operating system programming kit! (some assembly required)

#7
Mark Wylde

Mark Wylde

    Learning Programmer

  • Members
  • PipPipPip
  • 46 posts
stevie, that is genius. I'm tempted to put it in some of my code :P




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users