Elektrine lite

← Feed

@ZILtoid1991@lemmy.world

2026-09-09 10:52 UTC

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.

Replies (5)

  • @rtxn@lemmy.world 2026-09-09 11:01

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

    Open ##4655102

  • @vrek@programming.dev 2026-09-09 11:10

    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

    Open ##4655225

  • I mean thats not uncommon in game dev from what I have seen. Remember VVVVVV? The creator open sourced the code years ago, and they didn’t use enums either, just switch statements with integers. I imagine a lot of indie games suffer from this as they’re made by a passionate person/group that are learning on the fly.

    Open ##4657093

  • @gianni@lemmy.ca 2026-09-09 15:21

    What is Pirate Software?

    Open ##4657348

  • @VibeSurgeon@piefed.social 2026-09-09 16:30

    What’s his motivation for something so deranged?

    Open ##4657714