this post was submitted on 09 Sep 2026
44 points (87.9% liked)

Programmer Humor

33155 readers
277 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] ZILtoid1991@lemmy.world 9 points 47 minutes ago (2 children)

PirateSoftware doesn't use enums for whatever reason, instead he uses raw integer values with hand comments (and allegedly an Excel doc) on what is what, which is one of the reasons behind his awful code, which in turn lead to him not being able to ship his game.

[–] rtxn@lemmy.world 17 points 38 minutes ago (1 children)

Actually they're only enums if they're made in the Enümmär region of Germany, otherwise they're just sparkling integers.

[–] ZILtoid1991@lemmy.world 2 points 35 minutes ago (1 children)

Another comment on this post have declared enums outside of Rust being bad for not having tagged union capabilities.

[–] RaphaelSchmitz@feddit.org 2 points 14 minutes ago

Yeah but that's just edgelord behaviour.

You get those a lot with all kinds of programming languages, and Rust is certainly not know for having less of them.

[–] vrek@programming.dev 6 points 29 minutes ago* (last edited 29 minutes ago)

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 < #301 || #303 > #302: Display error

Continue process