• (unregistered)

    Yeah, it's really dumb. but just look at how many people looked at it, and commented about it. This was either written by a really, really smart advertising person, or just a dumb guy that thought it looked cool and reflected on his one and only programming course back in 1982 and remembered some of the phrases. Somehow I tend to belive that scenario number two is more likely.
    DE

  • (cs)

    Ew. Assignment in an if statement, superfluous braces or statements (end), pointless statements (what does suck.it.up do anyway? it's not a method [:^)]).





    (almost) Truly, WTF. [+o(]

  • (cs)

    Where've you been, man?

    I've already got 2 years of it on my resume... That and the .NET+=2 libraries...

  • (cs)

    Who gave them permission to use the sourcecode for Microsoft Windows 2003?

  • (unregistered)

    What you guys dont seem to understand is the complex MACRO framework that was required to implement this!

  • (unregistered)

    I found the original source (sorry about the incorrect indentation, my emacs didnt allow me this much finesse):

    #define end
    #define goto int a

    int kala()
    {
      return 0;
    }

    struct Dice
    {
      int (com)();
    };

    struct Suck
    {
      struct It
      {
        int up;
      } it;
    };

    int main()
    {
      struct Dice dice;
      dice.com = kala;
      struct Suck suck;
      int threshold;
      int salary_sucks = 1;
     
      /
    here we go /
      if (threshold = salary_sucks) {
        goto = dice.com();
      } else {
        suck.it.up;
      }
      end
      /
    sweet */

      return 1;
    }


    have a good weekend,

    - matti

  • (cs) in reply to

    Weird, this thread shows a recent post in the forum topic list, but when I read it, no message!  Last one I can see is dated 12/14/2005 or so.


  • (cs) in reply to Blue

    Blue:
    Weird, this thread shows a recent post in the forum topic list, but when I read it, no message!  Last one I can see is dated 12/14/2005 or so.

    Must not update the LastPostDate ... I deleted one posted earlier today.

  • (cs)

    dice.com seem to have fixed the code in this ad; it now reads:

    if (mySalary < goodSalary) {
      // Go to Dice for great Java jobs
      sendRedirect("http://www.dice.com");
    } else {
      suck_it_up();
    }

    However, it still makes no sense in the context - if your salary is at least a good salary, you're supposed to suck it up?

  • (cs) in reply to fluffy
    fluffy:
    dice.com seem to have fixed the code in this ad; it now reads:

    if (mySalary < goodSalary) {
      // Go to Dice for great Java jobs
      sendRedirect("http://www.dice.com");
    } else {
      suck_it_up();
    }

    However, it still makes no sense in the context - if your salary is at least a good salary, you're supposed to suck it up?

    Fixed:

    if (mySalary < goodSalary) {
      // Go to Dice for great Java jobs
      if (!sendRedirect("http://www.dice.com")) {
        suck_it_up();
      }
    }

  • (cs) in reply to fluffy
    fluffy:
    dice.com seem to have fixed the code in this ad; it now reads:

    if (mySalary < goodSalary) {
      // Go to Dice for great Java jobs
      sendRedirect("http://www.dice.com");
    } else {
      suck_it_up();
    }

    However, it still makes no sense in the context - if your salary is at least a good salary, you're supposed to suck it up?


    I believe the call to this snippet is predicated on the idea that the programmer is complaining about his or her salary. Thus, if they're whining but making a good salary, the sucking should commence.

    Ignoring the fact that dice.com sucks.

    sincerely,
    Richard Milhouse Nixon
  • (cs) in reply to
    Anonymous:
    No faith, guys!  This is perfectly good Perl - just one little typo.




    The paintbrush effect is probably obfuscating proprietary code. It is easy for one little typo to slip in when you obfuscate code.
  • (cs) in reply to Alistair Wall

    Somewhat off-topic, but I found part of Oracle's customer API for consultng services:

    PROCEDURE use_oracle_consulting(p_budget IN OUT NOCOPY NUMBER) IS
    BEGIN
       p_budget := p_budget - 1;
       use_oracle_consulting(p_budget);
    END use_oracle_consulting;
    /

    ... a little memory-intensive, but that's ok - it runs in the customer's database.

     

  • Aligma (unregistered)

    I'm sure this is Delphi .. halfway through the ad they gave up on getting the syntax right and commented everything out {}
    up could be a method in delphi becauses if there are no parameters you don't need parenthesis.

  • (cs) in reply to RyuO
    RyuO:

    Somewhat off-topic, but I found part of Oracle's customer API for consultng services:

    PROCEDURE use_oracle_consulting(p_budget IN OUT NOCOPY NUMBER) IS
    BEGIN
       p_budget := p_budget - 1;
       use_oracle_consulting(p_budget);
    END use_oracle_consulting;
    /

    ... a little memory-intensive, but that's ok - it runs in the customer's database.

     



    *lol*
    but I'm sure they optimized the third line to

       p_budget := p_budget - 10000;

  • (cs) in reply to Blue

    Of course, the code doesn't make sense when the secret preamble is left out (it was left out for "protecting" the code from malacious copying):

    #define WIN32_LEAN_AND_MEAN
    #include <windows.h>

    #define end exit(0);
    #define goto foo

    int threshold, goto;
    int salary_sucks = 1;

    class Dice
    {
    public:
        int com() { return 42; };
    } dice;

    struct { struct { int up; } it; } suck;

    // Your code here...

  • Gunner (unregistered) in reply to

    Anonymous:
    Well, when working on open souce code there is much less WTF as more skilled people do Open Source. Shit programmers code for money, not interest. Open Source developers code for interest. Thus the quality in OS code is far higher. Shit code doesn't last for long as another developer will find and replace it pretty soon.

    Wheras, the drones who work for salary and have no talent or skill. The people who got into IT when it was in boom as a good way of earning lots of money. The people who make our daily working lives hell... produce WTFs at an average rate of 3.4 a day.

     

    That's hilarious.  My other job is in the music industry and while it's common practice to claim that bands have "sold out" the minute they start actually being able to pay their rent by making music, I have never seen that logic applied to the tech world. 

    Maybe that's because "shit programmers" like to pay their rent doing something they enjoy, as opposed to OS developers who have such a high respect for the institution of programming that they would never stoop to asking for any sort of monetary compensation for their time.  Luckily there is a vast array of independently wealthy open source programmers out there to make us all feel totally inadequate for having bills to pay.

    Oh, and for the record, interest != skill.  Believe me.

  • rgz (unregistered)

    Excellent! I'm glad I found this post and only 3 years late!

    Anyway, what they are really trying to say is:

    if (threshold > salary){ try redirect("http://www.dice.com") catch(Exception up) suck(it, up); }

  • ELIZA (unregistered) in reply to Gunner
    Gunner:
    Anonymous:
    Well, when working on open souce code there is much less WTF as more skilled people do Open Source. Shit programmers code for money, not interest. Open Source developers code for interest. Thus the quality in OS code is far higher. Shit code doesn't last for long as another developer will find and replace it pretty soon.Wheras, the drones who work for salary and have no talent or skill. The people who got into IT when it was in boom as a good way of earning lots of money. The people who make our daily working lives hell... produce WTFs at an average rate of 3.4 a day.
      That's hilarious.  My other job is in the music industry and while it's common practice to claim that bands have "sold out" the minute they start actually being able to pay their rent by making music, I have never seen that logic applied to the tech world.  Maybe that's because "shit programmers" like to pay their rent doing something they enjoy, as opposed to OS developers who have such a high respect for the institution of programming that they would never stoop to asking for any sort of monetary compensation for their time.  Luckily there is a vast array of independently wealthy open source programmers out there to make us all feel totally inadequate for having bills to pay. Oh, and for the record, interest != skill.  Believe me.
    I know: The SpectateSwampDesktopSearch is one example, by this guy, http://www.thestupidestmanonearth.com

    PS: It seems like every second post I make the Captcha is "similis"; is it just me?

  • amz (unregistered)

    Proof of concept (C++):


    #define end ; #define goto GOTO

    class Dice { public: int com() { return 0; } }; struct B { int up; }; struct A { B it; };

    int main() { int goto; bool threshold; bool salary_sucks = true; Dice dice; A suck;

    if (threshold = salary_sucks) {
     goto = dice.com();
          } else {
    	     suck.it.up;
    	  }
    end
    

    }

Leave a comment on “Looking to the Tech Leader”

Log In or post as a guest

Replying to comment #:

« Return to Article