bergey: (psychrometric chart)
bergey ([personal profile] bergey) wrote2011-12-01 01:48 pm
Entry tags:

(no subject)

Today I'm writing code in the worst programming language I've ever seen. Evidently the function parameters of built-in functions must be constants, not variables. This doesn't work:

Builtin(MyVar)
but this does:
if MyVar == 1:
    Builtin(1)
if MyVar == 2:
    Builtin(2)

My boss writes "I gave Campbell a rough tine about this when CRbasic first came out. I had forgotten how frustrated I was that they forced me to do something so obviously inelegant." So at least I'm in good company.

phi: (Default)

[personal profile] phi 2011-12-01 11:27 pm (UTC)(link)
That is amazingly terrible. I shall bite my tongue and not complain about my own programming adventures this week :)