Nov 9

Dice Ad Error


We’ve talked about Dice’s cool ads before, but in this one, I found two syntax errors (assuming this is classic ASP and not ASP.Net — is that a fair assumption?). Anyone else see them?

[See the comments. I was totally wrong.]


Comments

by Mark,   November 9, 2006 9:01 AM  

I'm not an ASP programmer, nor do I call myself a programmer at all.

I see that ' Go to ... is not close '
Making the assumption that a ' will create a comment.

Also, the End If is usually EndIf in most languages, since End is typically a reserved word


by Jeff,   November 9, 2006 12:38 PM  

If mySalary, goodSalary and suckitup() are defined, this would not generate an error. The syntax looks good to me.

-Jeff


by Yaron,   November 9, 2006 1:22 PM  

I don't really know ASP but possible problems (assuming that there are two problems) could be: 1.If ASP does not allow parentheses inside the If statement 2.If ASP does not allow empty parentheses when calling a function/procedure that has no parameters


by Matt,   November 9, 2006 3:05 PM  

I give up, what are the sytax errors?


by Deane,   November 9, 2006 3:29 PM  

Here was my original thought.

  1. You don't put parans around the test in an If...Then in ASP.

  2. The "suck_it_up()" code is a problem. Since they're not assigning a return value, this is a subroutine, not a function. There's a difference in ASP. In ASP, you (inexplicably and stupidly) cannot use parans when passing arguments to a sub.

But, here's the thing. I wrote this code and executed it...and it worked. Apparently you can put parans around a test, and for some reason I can't get it to throw the "You cannot uses parantheses..." error.

I suck, totally.


by anon,   November 14, 2006 9:54 AM  

Deane, admitting that you suck make you suck less :)

Dudes, if you don't know ASP, why bother trying to spot syntax errors? If you don't know the syntax...


by Yaron,   November 15, 2006 8:17 AM  

Well, anon, it's the challenge combined with the fact that ASP isn't a complete mystery. Most of these programming languages follow certain syntax rules, even between languages. And there's a large difference between "don't know ASP" and "never saw ASP or any language remotely similar to it".

You would notice that I actually hit almost head-on the two things Deane thought of. They were both mistakes as it turned out, but the same mistakes, so I don't suck any more than he does. ;-) And the other guesses weren't particularly wild as well.



Add Comment


Want to advertise on this site? Contact FM.
Web Hosting Web hosting, dedicated servers and Web design services
Laser Toner Cartridges UK laser toner, toner cartridges, hp toner, lexmark toner, samsung toner, canon, toner, epson toner, oki toner, kyocera toner, xerox toner, remanufactured toner, compatible toner
Direct TV Deals Free 4 room direct tv deals. no equipment to buy. free fast professional direct tv installation. this is the best direct tv deal available anywhere.
SEO Article Learn from the experts with our SEO article.
rope light Shopping with birddog distributing, inc., gives you access to the lowest prices, the best customer service and the quickest delivery times possible.
Laptop AC Adapter We offer genuine factory direct replacement AC adapters.
Direct TV Best satellite TV deals.
Direct TV Deals Direct TV programming deals are varied and include packages containing from 50 channels up to over 250 channels.
8mm film to DVD Retain family memories with the only frame by frame digital restoration service in the United States for your 8mm film to DVD today
Rubber Stamp Shop for custom self-inking stamps, hand stamps, address stamps, label stamps, check endorsement stamps, check deposit stamps, date stamps, pre inks, pocket stamps, ink and much more!