Page 2 of 2

Re: Funniest comments in code

Posted: 27 Mar 2012, 07:09
by RuadRauFlessa
Found a comment the other day....

Code: Select all

// If you are not good enough to debug this then you should not be coding.
Was in a class above some random math in a recursive function which for some or other reason has no return statement. :scratch:

Got a couple of others I added to some code last week...

Code: Select all

// if you can't figure out what this class does find another job

Code: Select all

/*
   2012.03.19 - Initial implementation
   2012.03.20 - Changed around the columns by request of our lovely Call Center Manager
   2012.03.21 - Another change for our beloved Call Center Manager. Swapped the axis on the graphs
   2012.03.21 - Why oh why do we have meetings with all of these people in the same room in order to spec these things... Canceling all the meetings for the rest of time while busy adding alternate row colours... yellow and green lines are going to look so nice. I'm already starting to puke.
   2012.03.22 - Another change after proving that their logic is flawed and that they need to get a damn life... This time our SLA manager wants a column added to a report he is not even getting. Added the SLA Target to the report.
  2012.03.23 - Showed this log to my direct manager and he instructed for all changes to be undone and for these people to go fly a kite... so now I'm sitting and wasting time again... how lovely isn't the weather this time of year.
*/

Code: Select all

// 
// Next time someone decides to book this code out and butcher it please for heavens sake don't change the 
// threading. I don't want to fix your **** again. Concurrent processing is fine but when you are trying to process
// 40,000 odd files at the same time and dump their data into a database it is seriously not cool to try and do it 
// with a single thread for each one and all at once either.
//
// So when in doubt.... !@#$ off
//

Re: Funniest comments in code

Posted: 27 Mar 2012, 14:23
by Ron2K
You know you have a tad too much free time when you start putting xkcd references in code comments.

Code: Select all

if (stopCondition) // ******!  ABORT!  ABORT!  (http://www.xkcd.com/1029/)

Re: Funniest comments in code

Posted: 27 Mar 2012, 21:33
by Tribble
ROFL -= I read these to the other students today - they loved them. Trying to recruit new members I am

Re: Funniest comments in code

Posted: 30 Mar 2012, 08:41
by doo_much

Code: Select all

/* Display smilies (Bug #47265) */
Meaning allowing the use of smilies is a bug? :shock:

By the way - this is from the print style sheet of the G3ar theme I currently use....

Re: Funniest comments in code

Posted: 30 Mar 2012, 09:21
by Ron2K
^^ Nope, meaning that there was a bug causing smilies to not be displayed correctly. Original bug report here.

Re: Funniest comments in code

Posted: 14 Aug 2012, 14:08
by SykomantiS
Just found this in one of our source files.

Code: Select all

#region <summary>
        //.--    .-""-.
        //.   ) (     )
        //.  (   )   (
        //.     /     )
        //.    (_    _)                     0_,-.__
        //.      (_  )_                     |_.-._/
        //.       (    )                    |     \    
        //.        (__)                     |__--_/          
        //.     |''   ``\                   |
        //.     |        \                  |      /b/
        //.     |         \  ,,,---===?A`\  |  ,==y'
        //.   ___,,,,,---==""\        |M] \ | ;|\ |>
        //.           _   _   \   ___,|H,,---==""""bno,
        //.    o  O  (_) (_)   \ /          _     AWAW/
        //.                     /         _(+)_  dMM/
        //.      \@_,,,,,,---=="   \      \\|//  MW/
        //.--''''"                         ===  d/
        //.                                    //   SET SAIL FOR FAIL!
        //.                                    ,'_________________________
        //.   \    \    \     \               ,/~~~~~~~~~~~~~~~~~~~~~~~~~~~
        //.                         _____    ,'  ~~~   .-""-.~~~~~~  .-""-.
        //.      .-""-.           ///==---   /`-._ ..-'      -.__..-'
        //.            `-.__..-' =====\\\\\\ V/  .---\.
        //.                     ~~~~~~~~~~~~, _',--/_.\  .-""-.
        //.                            .-""-.___` --  \|         -.__..-
        //.
        //. This is a temp fix until toolbox items are rewritten with posititiong.
        #endregion

Re: Funniest comments in code

Posted: 17 Aug 2012, 02:12
by Cyrax
Isn't that similar to the logo lulzsec used? O_O

Re: Funniest comments in code

Posted: 27 Sep 2012, 10:45
by SykomantiS
It probably is :lol:

Also:

Code: Select all

/// <returns>bool value weather a assocation was found or not</returns>
It hurts... :cry:

Re: Funniest comments in code

Posted: 27 Sep 2012, 23:13
by DeathStrike
Ron2K wrote: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).
Hahaha

I take it the marketing department in all companies are bad... Mine are. :lol:

Re: Funniest comments in code

Posted: 19 Oct 2012, 18:43
by DarkStar
I didn't want to start a new thread, so I figured this is the best place for this...


Re: Funniest comments in code

Posted: 20 Oct 2012, 07:20
by Tribble
Very funny

Re: Funniest comments in code

Posted: 30 Oct 2012, 07:05
by DeathStrike
I loled :lol:

Re: Funniest comments in code

Posted: 14 Nov 2012, 20:36
by Anakha56
Something from Google about goats...

Code: Select all

  /**
     * Used to determine whether the user making this call is subject to
     * teleportations.
     *@return whether the user making this call is a goat
     */
    public boolean isUserAGoat() {
        return false;
    }
One of the Android Developers on G+ that I follow posted that. Apparently in Google Chrome if you do the following:
If in Chrome, do Shift-Esc. Right click on any process and you get a list of data elements to display. One of them is "Goats Teleported".
You see teleporting goats as well...

/Apple probably has "Nuking Android" references in its iOS code... :P

Re: Funniest comments in code

Posted: 15 Nov 2012, 08:20
by Ron2K
Sneakily inserted into a switch statement's default clause:

Code: Select all

// I'M TWELVE YEARS OLD AND WHAT IS THIS?

Re: Funniest comments in code

Posted: 13 Mar 2013, 11:52
by DeathStrike

Code: Select all

// oops, wrong parameter passed... die yankee *******!

Re: Funniest comments in code

Posted: 16 May 2013, 18:23
by Ron2K
Not a code comment, but close enough. This happened the other day in one of the IRC channels I sit in.

Code: Select all

--> steristumpie (~emotality@SF-C2010FDC.dynamic.isadsl.co.za) has joined #programming
<steristumpie> any ios developers?
<anonymous> thats prolly worse than OS/2 even, why not android? :p
<anonymous> its never too late to change for the better

Re: Funniest comments in code

Posted: 05 Dec 2013, 09:13
by Stuart
Looking at a .htaccess file on a website I am working on, and while this obviously serves a purpose, I lol'd when I saw this:

Code: Select all

# Disable etags -- less headers

Re: Funniest comments in code

Posted: 05 Dec 2013, 10:41
by SykomantiS
Win! :lol:

Re: Funniest comments in code

Posted: 05 Dec 2013, 11:43
by GDI_Lord
:lol:

Re: Funniest comments in code

Posted: 05 Dec 2013, 14:16
by Hman
Not a comment in code, but a little song for programmers to sing while drinking their sorrows away.

99 little bugs in the code
99 little bugs in the code
Take one down, patch it around
117 little bugs in the code

Re: Funniest comments in code

Posted: 05 Dec 2013, 14:57
by GreyWolf
HAH!

Re: Funniest comments in code

Posted: 14 Jan 2014, 14:53
by DeathStrike

Code: Select all

//HACK - this was requested by the client and client understands risks and impacts and forced us into this
Love clients like this. :lol: