- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
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
Admin
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(]
Admin
Where've you been, man?
I've already got 2 years of it on my resume... That and the .NET+=2 libraries...
Admin
Who gave them permission to use the sourcecode for Microsoft Windows 2003?
Admin
What you guys dont seem to understand is the complex MACRO framework that was required to implement this!
Admin
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
Admin
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.
Admin
Must not update the LastPostDate ... I deleted one posted earlier today.
Admin
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?
Admin
Fixed:
if (mySalary < goodSalary) {
// Go to Dice for great Java jobs
if (!sendRedirect("http://www.dice.com")) {
suck_it_up();
}
}
Admin
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
Admin
The paintbrush effect is probably obfuscating proprietary code. It is easy for one little typo to slip in when you obfuscate code.
Admin
Somewhat off-topic, but I found part of Oracle's customer API for consultng services:
... a little memory-intensive, but that's ok - it runs in the customer's database.
Admin
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.
Admin
*lol*
but I'm sure they optimized the third line to
Admin
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...
Admin
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.
Admin
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); }
Admin
PS: It seems like every second post I make the Captcha is "similis"; is it just me?
Admin
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;
}