211

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
[-] wwb4itcgas@lemm.ee 1 points 1 day ago

You... grinds teeth may... have a point.

[-] zea_64 139 points 1 week ago

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

[-] johntash@eviltoast.org 31 points 1 week ago

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

load more comments (1 replies)
[-] sleep_deprived@lemmy.dbzer0.com 79 points 1 week ago

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)
[-] towerful@programming.dev 70 points 1 week ago
[-] Xanza@lemm.ee 27 points 1 week ago
[-] darvit@lemmy.darvit.nl 15 points 1 week ago

Actually it's [object Object]

[-] towerful@programming.dev 10 points 1 week ago

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)
[-] xmunk@sh.itjust.works 57 points 1 week ago

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.

[-] fmstrat@lemmy.nowsci.com 2 points 4 days ago

Tabs set at 1 space.

[-] MajorHavoc@programming.dev 21 points 1 week ago

A haiku for you:

Tabs or four spaces

Never a semicolon

Broken in spirit

[-] Reptorian@programming.dev 13 points 1 week ago

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

[-] xmunk@sh.itjust.works 9 points 1 week ago

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

load more comments (1 replies)
[-] BeardedGingerWonder@feddit.uk 7 points 1 week ago

I feel like this is a debate that doesn't exist - 4 spaces bound to tab is the only actual answer.

[-] brian@programming.dev 10 points 1 week ago

most things seem to have settled on this, but tabs are so much better for accessibility. programmers with bad vision can have trouble differentiating smaller indentation levels, while some of them just bump the font size up so high that 4 spaces takes up too much screen space. each one can set a tab width that is comfortable for them. https://alexandersandberg.com/articles/default-to-tabs-instead-of-spaces-for-an-accessible-first-environment/ has some good arguments

with a forced formatter and a configured editor there really isn't any argument for spaces

[-] Quetzalcutlass@lemmy.world 1 points 3 days ago* (last edited 3 days ago)

I remember people arguing over 2 vs 3 spaces, back when terminals only displayed 80 characters and every character width saved was a huge deal. (Oh god, memories of all the single-character variable names have returned to haunt me)

I can't go back, won't go back. I am so glad the Bad Old Days are over. *returns to coding on my dual-widescreen monitor setup*

load more comments (1 replies)
load more comments (5 replies)
[-] Molten_Moron@lemmings.world 47 points 1 week ago

Html is a programming language.

[-] ramble81@lemm.ee 7 points 1 week ago* (last edited 1 week ago)

That’s right there with calling JS, PowerShell and Bash “programming languages”. I said what I said.

Edit: I’m a developer myself and it looks like I triggered everyone just as the post said. Thanks for playing!

[-] sleep_deprived@lemmy.dbzer0.com 20 points 1 week ago

Tell me you don't know what a programming language is without telling me you don't know what a programming language is

load more comments (1 replies)
[-] itsathursday@lemmy.world 47 points 1 week 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.

[-] troyunrau@lemmy.ca 39 points 1 week ago

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

[-] deadbeef79000@lemmy.nz 8 points 1 week ago

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.

[-] Naich@lemmings.world 7 points 1 week ago
[-] logging_strict@programming.dev 1 points 6 days ago

so what if it's 100x slower /nosarc

[-] deadbeef79000@lemmy.nz 15 points 1 week ago

Like riding a motorcycle in a tee shirt and shorts.

[-] BigDanishGuy@sh.itjust.works 12 points 1 week ago* (last edited 1 week ago)

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 (2 replies)
[-] Darohan@lemmy.zip 35 points 1 week ago

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)

[-] sleep_deprived@lemmy.dbzer0.com 25 points 1 week 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)
[-] hooferboof@lemmy.world 28 points 1 week ago

#define if while #define true false

[-] kionay@lemmy.world 6 points 1 week ago

Or a classic:

#define true (rand() % 2)
#define false (rand() % 2)
load more comments (1 replies)
load more comments (2 replies)
[-] maxmalrichtig@discuss.tchncs.de 27 points 1 week ago

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

Y u no close brackets!?

[-] drislands@lemmy.world 11 points 1 week ago

I think that's the joke, Clyde!

[-] fargeol@lemmy.world 24 points 1 week ago
[-] Croquette@sh.itjust.works 22 points 1 week 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.

[-] Solemarc@lemmy.world 21 points 1 week ago

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

load more comments (1 replies)
[-] Hammerheart@programming.dev 18 points 1 week ago

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

[-] logging_strict@programming.dev 1 points 6 days ago* (last edited 6 days ago)
from multiprocessing import Lock
l = Lock()

flake8 .... way too ambiguous

[-] tiredofsametab@fedia.io 7 points 1 week 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.

[-] lvxferre@mander.xyz 13 points 1 week 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.

[-] LuxSpark@lemmy.cafe 13 points 1 week ago
[-] Albbi@lemmy.ca 8 points 1 week ago

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

[-] bitcrafter@programming.dev 12 points 1 week ago* (last edited 1 week ago)
load more comments (1 replies)
[-] Simulation6@sopuli.xyz 11 points 1 week 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

[-] F04118F@feddit.nl 9 points 1 week ago* (last edited 1 week ago)
[-] BeardedGingerWonder@feddit.uk 7 points 1 week ago

Make them do project management.

load more comments
view more: next ›
this post was submitted on 01 Mar 2025
211 points (100.0% liked)

Programmer Humor

21165 readers
1270 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