2026-09-09 11:10 UTC
Reminds me of a codebase I used to work on which we had 899 variable limit and we couldn’t name them, only number them. These were limitations of the language.
Each variable had to be assigned a 3 digit number but 1-100 were taken by internal stuff so only 101- 999 was allowed. So let’s say you wanted to check if power was between 50 and 60 you would end up with like
#301 = 50;
#302 = 60;
#303 = powerSignal;
If #303 #302:
Display error
Continue process
Replies (4)
-
@TonyOstrich@lemmy.zip 2026-09-09 12:56
So a FANUC controller? Did yours spin sideways or vertically?
-
@girlnamedzero@piefed.zeromedia.vip 2026-09-09 13:06
That’s… that’s so awful…
-
@WesternInfidels@feddit.online 2026-09-09 13:56
Did this cursed language have a name?
-
@echodot@feddit.uk 2026-09-09 15:40
Ok at this point I’m okay with magic numbers, they make the code more readable