Dice again: Are they just trying to be stupid?

2005-10-11 01:13

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.

Peter Seebach



  1. 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.


    — tubby · 2005-10-12 05:59 · #

  2. 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.

    — seebs_lawyer · 2005-10-12 08:23 · #