Dice again: Are they just trying to be stupid?


Categories: GeekStuff

Followup to this previous entry:

Another Dice ad

This ad’s pseudocode is:

if (threshold = salary_sucks) {
 goto = dice.com();
      } else {

Never mind the atrocious formatting. WTF is the end doing there? They started out using {} pairs, then suddenly an end token, after properly balanced braces?

This was written by someone who can’t code, and I think even less of these people now than I used to.

Comments [archived]

From: tubby
Date: 2005-10-12 06:59:49 -0500

Actually the code works in Clipper and variants of FoxPro I think. The final end is interpreted by the computer as whatever is structurally required. ENDDO and ENDIF are created from a simple END.

Please do not post this publicly, Peter. I don’t want to take away from your original message.


From: seebs_lawyer
Date: 2005-10-12 09:23:55 -0500

I fed it to perl. I got this:

Can’t modify constant item in scalar assignment at dice.txt line 1, near “salary_sucks) “

Execution of dice.txt aborted due to compilation errors.