Page 1 of 2

Funniest comments in code

Posted: 01 Mar 2010, 12:03
by Ron2K
Click Click

Comes with a language warning.

Re: Funniest comments in code

Posted: 01 Mar 2010, 14:24
by Tribble
:lol:

Re: Funniest comments in code

Posted: 02 Mar 2010, 07:53
by Mykhal
Tribble wrote::lol:

+1^!10000000

Re: Funniest comments in code

Posted: 02 Mar 2010, 08:09
by c0d3r
We have old legacy programs that are still in use. Sometimes we get the awesome job to do some maintenance work on these old programs.

Bloody code? The zombies were here?
Image

Touchy mad code?!
Image

Re: Funniest comments in code

Posted: 02 Mar 2010, 08:26
by rustypup
if ever there was a language worthy of an endless list of expletives, it would be VB... actually VBA then VB...

Re: Funniest comments in code

Posted: 02 Mar 2010, 08:31
by Tribble
I would agree there - not a language that comes easily. Luckily expletives do.

Re: Funniest comments in code

Posted: 02 Mar 2010, 22:39
by c0d3r
rustypup wrote:if ever there was a language worthy of an endless list of expletives, it would be VB... actually VBA then VB...
It puts the food on the table, so I am not complaining.

What are the best code comments you've encountered?

Posted: 14 Dec 2010, 09:17
by Ron2K
Inspired by a chat with RRF in the Spam Thread, as well as some gems I've found in my time, I thought I'd start this thread. :lol:

Found two gems in one of our stored procs:

Code: Select all

	/*
	* (WARNING: very long and very siff SQL about to follow!)
	*/


And at the end of said siff SQL:

Code: Select all

	-- that's over. thank the deity you believe in.

Re: What are the best code comments you've encountered?

Posted: 14 Dec 2010, 10:35
by Stuart
Actually, nvm. Threads merged.

Re: Funniest comments in code

Posted: 15 Dec 2010, 21:00
by Glingfram
I was submitted a half written program in c#, done with the aid of drag and drop controls and functions by a complete chop. So after 3 or 4 people had tried to fix it, I got the job and found this at the imports sections of one of the classes.

'Code is haunted don't bother.

try changing databases from Access to SQL Compact 3.5, and that's what you'd get :)

Re: Funniest comments in code

Posted: 15 Dec 2010, 21:04
by Ron2K
I added one of my own yesterday. It was discovered by someone else today, much to the great mirth of all.

Code: Select all

#region Enums (enom-nom-noms?)

Re: Funniest comments in code

Posted: 27 Jan 2011, 13:47
by SykomantiS
Not strictly a comment, but I just came across this in one of our stored procedures :lol:
Spoiler: (show)

Code: Select all

SELECT * FROM [tablename] as 'ASOL' ... 
ASOL being a compound of the table name in question :facepalm:
Bloody Belgians :D

Re: Funniest comments in code

Posted: 27 Jan 2011, 13:55
by rustypup
SELECT * FROM [tablename]
mere words cannot describe how much i would love to shoot the people who drop this sort of crud into procs... :|

Re: Funniest comments in code

Posted: 27 Jan 2011, 13:59
by RuadRauFlessa
rusty I am with you there. That is truly dangerous code. Could end the world with that single statement.

Re: Funniest comments in code

Posted: 27 Jan 2011, 14:31
by Ron2K
I left this above a particularly nasty piece of code that I wrote earlier this week:

Code: Select all

// here begins the Dark Magic - a ritual of Pain and Suffering to appease the Evil Gods (aka the Marketing Department).

Re: Funniest comments in code

Posted: 27 Jan 2011, 14:43
by SykomantiS
@ rusty and RRF, I replaced the column names with a * in the interest of saving my own behind- same as I replaced the actual table name with [tablename] :wink:

Re: Funniest comments in code

Posted: 07 May 2011, 00:21
by Spicy-McHaggis
/**
* For the brave souls who get this far: You are the chosen ones,
* the valiant knights of programming who toil away, without rest,
* fixing our most awful code. To you, true saviors, kings of men,
...* I say this: never gonna give you up, never gonna let you down,
* never gonna run around and desert you. Never gonna make you cry,
* never gonna say goodbye. Never gonna tell a lie and hurt you.
*/
:lol: :lol: :lol:

Re: Funniest comments in code

Posted: 07 May 2011, 14:33
by DeathStrike
AHHH.. i just rick rolled. :lol:

Re: Funniest comments in code

Posted: 20 Feb 2012, 15:15
by Ron2K
Ooh, look what I just found in our code base:

Code: Select all

// VEGETA, WHAT DOES THE SCOUTER SAY ABOUT HIS POWER LEVEL
updatedataparams.Add(Param.Create("{param-name-removed}", 9001));

Re: Funniest comments in code

Posted: 21 Feb 2012, 07:21
by RuadRauFlessa
^^ Dragonball-Z fan, aka: iWonWon2000

Re: Funniest comments in code

Posted: 06 Mar 2012, 12:29
by Ron2K
And, it appears I'm not the only World of Warcraft addict in the department. This comment found just below a "sanity check":

Code: Select all

// your sanity has reached zero.  your mind is now permanently under the control of Yogg-Saron.
// (http://www.wowhead.com/spell=63050 for those of you who don't play world of warcraft, or who
// don't get the obvious reference that blizzard made to the cthulhu mythos.)

Re: Funniest comments in code

Posted: 06 Mar 2012, 14:54
by RuadRauFlessa
Some people.... are just otherwise.

Re: Funniest comments in code

Posted: 06 Mar 2012, 17:59
by Ron2K
I seem to be on a roll today. :P

Code: Select all

// Here is where the ****ing dragon resides...
//                                  _/|__
//              _,-------,        _/ -|  \_     /~>.
//           _-~ __--~~/\ |      (  \   /  )   | / |
//        _-~__--    //   \\      \ *   * /   / | ||   
//     _-~_--       //     ||      \     /   | /  /|  
//    ~ ~~~~-_     //       \\     |( " )|  / | || /  
//            \   //         ||    | VWV | | /  ///  
//      |\     | //           \\ _/      |/ | ./ |
//      | |    |// __         _-~         \// |  /
//     /  /   //_-~  ~~--_ _-~  /          |\// /  
//    |  |   /-~        _-~    (     /   |/ / /   
//   /   /           _-~  __    |   |____|/     
//  |   |__         / _-~  ~-_  (_______  `\
//  |      ~~--__--~ /  _     \        __\)))
//   \               _-~       |     ./  \    
//    ~~--__        /         /    _/     |
//          ~~--___/       _-_____/      /            
//           _____/     _-_____/      _-~             
//        /^<  ___       -____         -____          
//           ~~   ~~--__      ``\--__       ``\
//                      ~~--\)\)\)   ~~--\)\)\)
(Profanity edited out, but it was present in the original comment!)

Re: Funniest comments in code

Posted: 26 Mar 2012, 14:01
by SykomantiS
Found this while debugging:

Code: Select all

 /* 
                             _.--""--._
                            /  _    _  \
                         _  ( (_\  /_) )  _
                        { \._\   /\   /_./ }
                        /_"=-.}______{.-="_\
                         _  _.=("""")=._  _
                        (_'"_.-"`~~`"-._"'_)
                         {_"            "_}

                 Abandon all hope, ye who enters here.
*/

Re: Funniest comments in code

Posted: 27 Mar 2012, 05:54
by Tribble
Oooh I have to do that today. C# is no longer such a mystery