this post was submitted on 01 Mar 2025
195 points (93.0% liked)

Programmer Humor

20893 readers
1212 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] 22 points 1 day ago
[–] bitcrafter 10 points 1 day ago* (last edited 1 day ago) (1 children)
[–] potoo22 2 points 1 day ago

I can't officially support this fork 😝

[–] [email protected] 21 points 2 days 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] 136 points 2 days ago (2 children)

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

[–] [email protected] 28 points 2 days ago

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

[–] [email protected] 4 points 1 day ago

I clicked into the post expecting more text and then realized that was the joke.

Congrats OP, I am both upset and entertained!

[–] [email protected] 27 points 2 days ago (1 children)

I mean, the headline of this post already makes me irrationally angry. 😂

Y u no close brackets!?

[–] [email protected] 9 points 2 days ago

I think that's the joke, Clyde!

[–] [email protected] 79 points 2 days 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?

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

Tinder MMO huh? You may be onto something...
But, if you want my opinion, I want 15%

[–] towerful 68 points 2 days ago (2 children)
[–] [email protected] 12 points 2 days ago (1 children)

Actually it's [object Object]

[–] towerful 7 points 2 days 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] 54 points 2 days ago (8 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.

[–] MajorHavoc 18 points 2 days ago

A haiku for you:

Tabs or four spaces

Never a semicolon

Broken in spirit

[–] Reptorian 13 points 2 days ago (2 children)

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

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

I've only ever heard raging between the two, but never why. I'm guessing there were competing languages with different standards, or maybe historic hardware limiting input sets that kicked this debate off or?

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

A few languages force a decision (usually towards tabs), but otherwise it's just a question of aesthetics vs. accessibility.

[–] [email protected] 3 points 22 hours ago

I see.

My worst experience was with spaces in code from an engineering professor who used a non-monospace typefont. Sadist. Though it was comic sans, they were probably just dyslexic. Despite the class focusing on numerical methods, we had to hand write Matlab code on paper using proper syntax. I have no clue why. Never learned much numerical method, nor were we ever allowed to use Matlab except on a few "projects" during the term. I found out about the spaces when i had to debug his example code he gave as solutions(which we were graded against). I saw errors and had to confirm i wasn't losing my mind. ...I wasn't. Anyways there was a mix of spaces and tabs to align the comic sans.

TLDR: I couldn't care less. Just don't code in word, and use a monospace font.

load more comments (5 replies)
[–] [email protected] 40 points 2 days ago (12 children)

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

[–] [email protected] 13 points 2 days ago (1 children)
load more comments (1 replies)
load more comments (11 replies)
[–] [email protected] 47 points 2 days ago (5 children)

Html is a programming language.

load more comments (5 replies)
[–] [email protected] 49 points 2 days 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] 37 points 2 days 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 2 days 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] 11 points 2 days 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] 10 points 2 days ago* (last edited 2 days ago)
[–] [email protected] 13 points 2 days 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] 28 points 2 days ago (3 children)

#define if while #define true false

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

Or a classic:

#define true (rand() % 2)
#define false (rand() % 2)
[–] [email protected] 1 points 1 day ago

That's evil

load more comments (2 replies)
[–] [email protected] 4 points 2 days 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)
[–] [email protected] 21 points 2 days 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)
[–] Hammerheart 19 points 2 days ago (3 children)

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

[–] logging_strict 1 points 7 hours ago* (last edited 7 hours ago)
from multiprocessing import Lock
l = Lock()

flake8 .... way too ambiguous

load more comments (2 replies)
[–] [email protected] 7 points 2 days ago

Make them do project management.

load more comments
view more: next ›