this post was submitted on 09 Sep 2026
124 points (84.8% liked)

Programmer Humor

33153 readers
668 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
[–] kubica@fedia.io 34 points 9 hours ago (2 children)

What is this about? I don't get the meme.

[–] ZILtoid1991@lemmy.world 56 points 9 hours ago (5 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.

[–] VibeSurgeon@piefed.social 6 points 3 hours ago (1 children)

What's his motivation for something so deranged?

[–] SkyezOpen@lemmy.world 2 points 1 hour ago

It was for an ARG. Or it doesn't matter because it runs on a mini fridge (no it doesn't). Or he was OOM.

[–] gianni@lemmy.ca 11 points 4 hours ago (1 children)
[–] echodot@feddit.uk 10 points 4 hours ago* (last edited 4 hours ago) (3 children)

He's some apparently famous YouTuber who reckons that he's a programming genius even though I'm the better programmer than him.

Occasionally he does something stupid and pops up on everyone's radar for a while and then the rest of the internet goes back to forgetting about him.

I guess he's kicked off again.

[–] SkyezOpen@lemmy.world 4 points 1 hour ago

He's actually been doing stupid shit for ages, it just didn't get widespread attention until the SKG thing blew up. Actually the wow roach might've been before that, but either way SKG is what basically ended him.

[–] lobut@lemmy.ca 2 points 1 hour ago

famous YouTuber who reckons that he’s a programming genius

Is that true? I've seen a lot of his shorts and he's always been like: "just make games" -- "stop worrying about code quality, some amazing games have shit code"

[–] cheat700000007@lemmy.world 5 points 3 hours ago (3 children)

I heard he worked for Blizzard. But it definitely wasn't nepotism

[–] Kolanaki@pawb.social 4 points 1 hour ago* (last edited 1 hour ago)

The most notable thing about Thor I know is that his dad is the literal World of Warcraft guy from that one episode of South Park. Like, not that he looks similar; he was the actual inspiration for the character after Trey and Matt met him while touring Blizzard's offices.

[–] SkyezOpen@lemmy.world 2 points 1 hour ago

Really? He never mentioned it.

He also did some hacking work.

[–] rtxn@lemmy.world 107 points 9 hours 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 9 points 9 hours 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 13 points 8 hours ago (1 children)

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.

[–] ZILtoid1991@lemmy.world 5 points 8 hours ago

It just it involves way more programmer socks and HRT jokes when it comes to Rust...

[–] vrek@programming.dev 30 points 8 hours ago* (last edited 8 hours ago) (4 children)

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

[–] girlnamedzero@piefed.zeromedia.vip 9 points 7 hours ago (1 children)

That’s… that’s so awful…

[–] vrek@programming.dev 11 points 6 hours ago (1 children)

If I told you what the purpose of this system was you would be really horrified...

[–] girlnamedzero@piefed.zeromedia.vip 9 points 6 hours ago (1 children)
[–] vrek@programming.dev 13 points 6 hours ago (1 children)

Basically we made devices which were surgically implanted into your body to send specific electrical signals to your spine and brain for certain medical issues. The electronics were in a metal case so your icky blood and bodily fluids didn't cause shorts. This system was to weld the metal case closed.

[–] MajorasMaskForever@lemmy.world 4 points 6 hours ago (1 children)

Sounds like someone wanted to avoid needing to recompile for the target, but was either hardware constrained on what they wanted to do or as they thought that implementing their own language was going to be easy, learned it's very much so not, and then took some stupid shortcuts

I totally haven't done that myself, nope....

[–] vrek@programming.dev 5 points 5 hours ago (1 children)

It's fanuc cnc... Incredibly useful and precise but OLD! They literally still support programs from bubble tape if you need. It was basically hardware constrained initially but fixing it would break backwards compatibility which is a super selling point for them to government and long term industries.

Their controllers are mad expensive (budget version is like 30k last I checked), their support is top notch(tech typically on site within 24 hours with every possible board which may be bad so they can get you running and charge you later), they are incredibly precise and can do things other systems legally can not(a trainer I knew said "if you can move in 5 dimensions at once you can do some interesting things with nuclear energy so those require special clearance to sell"). Basically if you need them you NEED them, if you don't then you don't.

[–] JoeBigelow@lemmy.ca 1 points 1 hour ago (1 children)

Custom machined fissible material!?

[–] vrek@programming.dev 1 points 1 hour ago* (last edited 1 hour ago)

Nah just titanium

[–] echodot@feddit.uk 1 points 4 hours ago (1 children)

Ok at this point I'm okay with magic numbers, they make the code more readable

[–] vrek@programming.dev 1 points 1 hour ago

It was a lot of magic numbers, why was that set that thing set to 3 minimum? It worked good enough at 3 to be acceptable

[–] TonyOstrich@lemmy.zip 6 points 7 hours ago (1 children)

So a FANUC controller?

Did yours spin sideways or vertically?

[–] vrek@programming.dev 5 points 7 hours ago (1 children)

Lol, yup. Actually it was 4 axis. And connected to a laser instead of a milling bit. The system was also in a controlled gas environment which added extra complications.

[–] TonyOstrich@lemmy.zip 1 points 3 hours ago (1 children)

Ooh, sounds spicy.

The hard set limit of #500-#999 is really frustrating when you also have to be careful not to overwrite certain kinds of "standard" program variables that your shop or company has decided on. I'm generally pretty OK with the limitations of these controllers and G-Code in general, but I would fucking kill to be able to use an array or to be able to declare a variable 😭.

[–] vrek@programming.dev 1 points 1 hour ago

It was mostly just the naming that caused my frustration. I tried to declare all variables at start, had that section printed out and hung on my cubicle wall.

[–] WesternInfidels@feddit.online 3 points 6 hours ago (1 children)

Did this cursed language have a name?

[–] vrek@programming.dev 8 points 6 hours ago

It was g-code which as another commentator correctly pointed out was used to control a fanuc cnc system.

[–] drcobaltjedi@programming.dev 3 points 5 hours ago (1 children)

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.

[–] ZILtoid1991@lemmy.world 2 points 30 minutes ago

TBH sometimes I'm also guilty of this, if I forget about them. In one library on mine, I'll have to put all error codes under a single enumerator, so I don't need to make new ones every time I add functionality.

[–] MrSoup@lemmy.zip 7 points 8 hours ago

Apparently PirateSoftware is someone who live-streams.