this post was submitted on 10 Jul 2025
928 points (100.0% liked)

Programmer Humor

24924 readers
1184 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
[–] [email protected] 89 points 1 day ago (9 children)

Spite coding is almost the original coding.

[–] [email protected] 20 points 1 day ago* (last edited 1 day ago) (8 children)

I have definitely gone into a rageful fugue state and woken up a week later after reworking an entire code base from being an inconsistent mess of slop...

...into actually having a common library of functions instead of just rewriting slightly different versions of them 8 times, having those functions only actually instantiated for necesarry classes...

...rewriting every variable name and function name to an actually consistent and intelligible naming scheme...

... and finally, moving a whole bunch of shit out of some kind of global 'think' type loop that doesn't actually need to be called or checked every goddamned micro second.

Done that more than once actually.

Never look inside 'baby's first video game mod' code, unless you have healthy blood pressure.

But uh yeah, spite, hatred, and anger are indeed powerful motivators for making good code, lol.

... so many idiots just jam everything into a global, called every tick loop, and then claim that it just can't be optimized, because "the game engine just can't handle it"...

[–] [email protected] 8 points 19 hours ago (6 children)

I spent a good fraction of my career taking over and trying to fix code bases that my company refused to scrap and replace outright because they didn't want to admit their worthlessness. Complete rewrites would have taken maybe a tenth of the time I spent.

My favorite thing to encounter (which was nearly universal) was the phenomenon of a young programmer fresh out of college encountering SQL for the first time, deciding he hated it, and writing a huge mess of code to handle auto-generating the necessary SQL. I remember taking over one C# application that had classes named "AND.cs" and "OR.cs" which just took a String as a parameter and returned that String with " AND " and " OR " appended to it, respectively. In about an hour, I replaced three months of this guy's work that had bottlenecked the project with like five SQL statements.

It's insane to think what the civil engineering world would be like if it had the career structure of the software world.

[–] [email protected] 3 points 16 hours ago (1 children)

Holy shit, have we worked with the same guy?

[–] [email protected] 3 points 12 hours ago* (last edited 12 hours ago)

This guy's code once fired a 125 mph knuckleball a foot above a 10-year-old kid's head. Probably not the same guy.

load more comments (4 replies)
load more comments (5 replies)
load more comments (5 replies)