this post was submitted on 15 Jul 2025
206 points (95.2% liked)

Programmer Humor

25009 readers
1528 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 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] magic_lobster_party@fedia.io 16 points 22 hours ago (1 children)

At least this madness is isolated to this function. It can easily be fixed.

Pirate’s code is just cluttered with magic numbers everywhere. Hard coded numbers that are referring to a big ”story array”, or characters. It’s just a giant web of complexity. The only fix is to start from scratch.

[–] Lemminary@lemmy.world 2 points 3 hours ago

It's simple. The only problem is that your code sucks!