The Daily WTF: Curious Perversions in Information Technology
Welcome to TDWTF Forums Sign in | Join | Help
in Search

The musketeers have a secret mission

Last post 07-09-2008 9:16 AM by belgariontheking. 10 replies.
Page 1 of 1 (11 items)
Sort Posts: Previous Next
  • 07-08-2008 6:32 AM

    The musketeers have a secret mission

     I was assigned a simple task a few days ago. I had to write a simple string check class, then use it somewhere in the Big Application of ours. I started by writing a unit test and it worked (I said the check was simple. I'm not bragging here). Since I had finished sooner than I expected, I thought about writing a unit test for the class that would use the check, because there was none.

    Soon it became obvious that the idea wasn't so great: it was impossible to create an object without some magical, not documented pre-requisites. For instance, the class used heavily session data and an array of 3 different objects passed 3 times by reference, serialized, restored, extended, lost, found, stabbed, shot, recreated from scratch, and the array was conveniently called "data".

    When my unit test constructor achieved 40 lines of code, the whole thing seemed to finally live long enough to perform a few simple tricks. I felt like a magician muttering spells and drawing pentagrams around a portal to summon the beast, whose only trick was to make cold coffee. The effort wasn't worth it, but I was so far into it, that I didn't want to give up half way through.

    And then I stumbled about this nicely documented variable used as some sort of identifier:

     class Block {

    [snipped some 50 variables]

    /*

     * don't know what it does... ask Sophie

    */

     var $aramis = $_SESSION['aramis'];

    [snip]

    }

     Still no sign of Porthos or Athos, but I'm pretty sure they're somewhere near.

  • 07-08-2008 8:25 AM In reply to

    • Zecc
    • Top 100 Contributor
    • Joined on 06-12-2007
    • Posts 288

    Re: The musketeers have a secret mission

    Maybe it is meant to be read as ar..amis: an array of French friends?...

    Or an array of RAM inputs streams?

     

    Ok, I give up. 

    If mixed metaphors were illegal, I'd be having an indigestion.
  • 07-08-2008 8:39 AM In reply to

    Re: The musketeers have a secret mission

     How do we know that the author isn't referring to the cologne? Maybe he wanted a variable that smelled good. 

  • 07-08-2008 9:32 AM In reply to

    Re: The musketeers have a secret mission

    pitchingchris:
    How do we know that the author isn't referring to the cologne? Maybe he wanted a variable that smelled good.

    Or whose contents weren't vulnerable to Brut-force attacks.

     

    "Who is General Failure and why is he reading my disk?"
  • 07-08-2008 9:40 AM In reply to

    Re: The musketeers have a secret mission

    "All for one and one for all"... must be a singleton.

    What Would Brian Boitano Do?
  • 07-08-2008 9:47 AM In reply to

    Re: The musketeers have a secret mission

    The General:

    pitchingchris:
    How do we know that the author isn't referring to the cologne? Maybe he wanted a variable that smelled good.

    Or whose contents weren't vulnerable to Brut-force attacks.

     

    There is a special place in hell for those who use bad^h^h^h puns, I think it's right next to the Flatulant Beast of Sauerkraut's bedpan. 

     

    May the Flying Spagheti Monster have mercy on your soul.

     
    ~Sticky

    Filed under:
  • 07-08-2008 10:14 AM In reply to

    Re: The musketeers have a secret mission

    StickyWidget:
    May the Flying Spagheti Monster have mercy on your soul.

    Tell him to bring in meatballs and garlic bread and we'll have a potluck.

  • 07-08-2008 10:25 AM In reply to

    Re: The musketeers have a secret mission

    pitchingchris:

    StickyWidget:
    May the Flying Spagheti Monster have mercy on your soul.

    Tell him to bring in meatballs and garlic bread and we'll have a potluck.

    Oh no... I just ate spaghetti and meatballs for lunch. Spooky. Anyway, I'm already going to hell for using over-using foreign words when there's a perfectly slušné English one.

    "Who is General Failure and why is he reading my disk?"
  • 07-08-2008 11:43 AM In reply to

    Re: The musketeers have a secret mission

    StickyWidget:

    There is a special place in hell for those who use bad^h^h^h puns.

    May the Flying Spagheti Monster have mercy on our souls.

    FTFY - waits for penny to drop - ducks.
  • 07-09-2008 9:04 AM In reply to

    Re: The musketeers have a secret mission

    The General:

    I'm already going to hell for using over-using foreign words when there's a perfectly slušné English one.

     Yay! I've just learnt a foreign word:  slušné = cromulent.

    Filed under:
  • 07-09-2008 9:16 AM In reply to

    Re: The musketeers have a secret mission

    NeoMojo:
    The General:

    I'm already going to hell for using over-using foreign words when there's a perfectly slušné English one.

     Yay! I've just learnt a foreign word:  slušné = cromulent.

    Yay!  I've just learned an English word.  cromulent = fine, acceptable.
    This user has retired from TDWTF Forums, citing complete incompetence on the part of the moderators. Please continue to spam the addresses below.

    PLEASE SPAM:
    jtobin@ohioinstituteofhealthcareers.edu
    jtobin@ohiobusinesscollege.edu
Page 1 of 1 (11 items)
Powered by Community Server (Non-Commercial Edition), by Telligent Systems