this post was submitted on 01 Mar 2025
207 points (93.7% liked)

Programmer Humor

22193 readers
1610 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
 

Probably not a good title to seek upvotes. If it does get upvotes, more programmers get share in your pain πŸ˜…

top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 140 points 1 month ago (2 children)

I thought the joke here was that your unbalanced parentheses would make me angry (they did))

[–] [email protected] 30 points 1 month ago

... is that not the point of the title?

load more comments (1 replies)
[–] [email protected] 83 points 1 month ago (1 children)

I have this great idea for an app, we can go 70/30 on it! 70 for me because the idea is the hardest part after all. So basically it's Twitter plus Facebook plus Tinder with a built in MMO. You can get that done in a couple weeks, should be pretty easy right?

load more comments (1 replies)
[–] [email protected] 70 points 1 month ago (2 children)
[–] [email protected] 13 points 1 month ago (1 children)

Actually it's [object Object]

[–] [email protected] 8 points 1 month ago (1 children)

Ah, piss. So it is.
I'm going to blame it on autocorrect, even though we both know I just got it wrong

load more comments (1 replies)
[–] [email protected] 56 points 1 month ago (10 children)

Figure out if they prefer spaces or tabs, insist on the other.

Please note this won't work on Pythonistas as they've already had their spirit thoroughly broken.

[–] [email protected] 21 points 1 month ago

A haiku for you:

Tabs or four spaces

Never a semicolon

Broken in spirit

[–] [email protected] 14 points 1 month ago (1 children)

What if you use tabs for indentations and space for alignment?

[–] [email protected] 9 points 1 month ago (1 children)

It's alright... but have you considered spaces for indentation and tabs for alignment?

load more comments (1 replies)
load more comments (8 replies)
[–] [email protected] 49 points 1 month ago

You guys are too slow, we need to hire more of you and let the sales teams use AI to add features the client asks without waiting for you.

AI can code now, in 2 mins I can create an app, so it shouldn’t take you long to make changes to this 10year old product.

[–] [email protected] 49 points 1 month ago (5 children)

Html is a programming language.

load more comments (5 replies)
[–] [email protected] 42 points 1 month ago (3 children)

Insist they index from 1. Like God and Fortran intended it. ;)

[–] [email protected] 15 points 1 month ago (1 children)
[–] [email protected] 5 points 1 month ago
[–] [email protected] 8 points 1 month ago (1 children)

Fuck C and it's lazy shit pointer arithmetic array indexing shortcut. I.e. you just add the index Γ— size(t) to the array pointer.

Bounds checking? We've heard of it.

[–] [email protected] 7 points 1 month ago (2 children)
[–] [email protected] 15 points 1 month ago (2 children)

Like riding a motorcycle in a tee shirt and shorts.

[–] [email protected] 12 points 1 month ago* (last edited 1 month ago) (3 children)

And sun glasses, don't forget the aviators.

While Mr "I can't code without a garbage collector" is still putting on his backplate of "oh no pointers are bad" and a duck typed full face helmet, to ride his interpreted moped, the big boys, Mr C-ool and Mr ASSembly, are already downing grain alcohol at the finish line.

But then again I really don't like to step out of my embedded RTOS bubble. It really depends on what you want to accomplish and how complicated your system is.

load more comments (3 replies)
load more comments (1 replies)
load more comments (1 replies)
[–] [email protected] 5 points 1 month ago (1 children)
[–] [email protected] 6 points 1 month ago

MATLAB is basically a UI wrapper around Fortran's BLAS and LAPACK -- change my mind. ;)

[–] [email protected] 37 points 1 month ago (2 children)

Replace a semicolon (;) with a Greek Question mark (ΝΎ), provided they're working in a language that uses semicolons at the end of every line, and their IDE doesn't highlight the difference (which some do now)

[–] [email protected] 25 points 1 month ago

Fun fact, Rust has a special error message for this:

Unicode character 'ΝΎ' (Greek Question Mark) looks like a semicolon, but it is not.

It also detects other potentially confusing Unicode characters, like the division slash which looks like /.

load more comments (1 replies)
[–] [email protected] 28 points 1 month ago (2 children)

#define if while #define true false

[–] [email protected] 6 points 1 month ago (1 children)

Or a classic:

#define true (rand() % 2)
#define false (rand() % 2)
load more comments (1 replies)
[–] [email protected] 5 points 1 month ago (1 children)
load more comments (1 replies)
[–] [email protected] 27 points 1 month ago (1 children)

I mean, the headline of this post already makes me irrationally angry. πŸ˜‚

Y u no close brackets!?

[–] [email protected] 10 points 1 month ago

I think that's the joke, Clyde!

[–] [email protected] 24 points 1 month ago
[–] [email protected] 22 points 1 month ago

I work as an embedded developer and when a new board is produced and half tested, every one expects fully functional code off the bat, right away.

Motherfucker, you didn't even qualify your hardware and you expect my code, that hasn't hit the new board, to be 100% functional, based on your mind map? We will find hardware issues that will inevitably be blamed on the code and spend hours "debugging" the code to eventually find out the hardware is shit.

[–] [email protected] 21 points 1 month ago (1 children)

"we're just trying to display why is this so hard? It's a ten minute job!"

load more comments (1 replies)
[–] [email protected] 19 points 1 month ago (3 children)

short variable names, and the only vowel is 'i'

[–] [email protected] 11 points 1 month ago
skibidi = 42
[–] [email protected] 8 points 1 month ago

I inherited an old Japanese codebase. Tons of stuff was just single-letter variables. Apparently, this used to be at least somewhat common here. I spent a lot of time just updating code to replace vars with something meaningful (and found bonus bugs due to improper scoping with same var names as a bonus). Didn't have an IDE that would easily do it for me at the time and running something like sed felt too risky.

load more comments (1 replies)
[–] [email protected] 13 points 1 month ago (1 children)
[–] [email protected] 8 points 1 month ago

You have no power here! I use a standing desk.

[–] [email protected] 13 points 1 month ago

Correctly highlight when a programmer is being assumptive as a brick, even when assumptions are one of the biggest sins in programming. Done, you've triggered a lot of programmers.

[–] [email protected] 12 points 1 month ago* (last edited 1 month ago) (1 children)
load more comments (1 replies)
[–] [email protected] 10 points 1 month ago

Micromanagement to speed up product release date. Daily meeting and status reports, work breakout categories such as β€˜code design’, β€˜code development’, β€˜code documentation’, etc,etc (flash back gif of Apache helicopters flying over a jungle

[–] [email protected] 8 points 1 month ago* (last edited 1 month ago)
[–] [email protected] 7 points 1 month ago

Make them do project management.

[–] [email protected] 6 points 1 month ago (7 children)

Good pay for me, no programming socks for thee!

load more comments (7 replies)
[–] [email protected] 6 points 1 month ago

Write spaghetti code and don't listen to advice telling you to improve

[–] [email protected] 5 points 1 month ago (1 children)

Compile your kernel with a different version of ld then shipped with your distro. I have this right now in Debian testing and it's enraging. I'm not even sure if that's the source of my error

load more comments (1 replies)
load more comments
view more: next β€Ί