December 3, 2004

To: Dice.com. Subject: Bad Ads Considered Harmful

Dice.com, the tech jobs site, has started running banner ads to promote their site. Take a look at this one:


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

Gosh, didn't they get the memo? Dice.com is clearly out of touch with the kind of people who would use their site.

Posted by zach at December 3, 2004 8:54 AM
Comments

They also look to be pretty junky coders, too. The first line should throw a warning on the assignment done there, unless they really think nobody has a good salary.

Posted by: Jeff Walden on December 3, 2004 12:40 PM

Well, Python would actually give you a syntax error (no assignments in if statements) while Basic (MSVB at least) doesn't have a seperate equality and assignment operator so it would do what it is "supposed" to do. With all the semicolons thrown around I guess it's supposed to be c code. In that case tho, there is no goto in this code. "goto" is just a variable catching the result of the function call... :)

Posted by: simeonbeta2 on December 3, 2004 1:57 PM

the goto in this context is more variable then actual jump instruction!
example of the goto jump:

{
a:
printf ("endless loop");
goto a;
}

The code has also more general problems variables are not defined and there is no output unles the member function com of the variable dice has some.


What language is this suppose to be in?
For C/C++ :
there is some confusing instruction "end", unused variables suck.it.up and treshold;

For pascal:
there are some confusing comments({}), missing "begin" and "then" for the "if" statement and comparison is just for equality between treshold and salary_sucks.

Posted by: JR on December 5, 2004 4:43 AM
Post a comment