bergey: (psychrometric chart)
[personal profile] bergey

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.

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

Profile

bergey: Motorcycle carburator, partly disassembled to show jets (Default)
bergey

September 2013

S M T W T F S
12345 67
891011121314
15161718192021
222324252627 28
2930     

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 6th, 2025 10:41 am
Powered by Dreamwidth Studios