this post was submitted on 01 Mar 2025
53 points (100.0% liked)

Programmer Humor

428 readers
27 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 21 comments
sorted by: hot top controversial new old
[–] troyunrau@lemmy.ca 14 points 4 hours ago (2 children)

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

[–] deadbeef79000@lemmy.nz 3 points 2 hours 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.

[–] Naich@lemmings.world 2 points 1 hour ago (1 children)
[–] deadbeef79000@lemmy.nz 5 points 1 hour ago

Like riding a motorcycle in a tee shirt and shorts.

[–] KickMeElmo@sopuli.xyz 4 points 4 hours ago
[–] zea_64@lemmy.blahaj.zone 46 points 6 hours ago (1 children)

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

[–] johntash@eviltoast.org 18 points 5 hours ago

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

[–] sleep_deprived@lemmy.dbzer0.com 24 points 6 hours 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?

[–] towerful@programming.dev 37 points 8 hours ago (1 children)
[–] Xanza@lemm.ee 14 points 7 hours ago
[–] Molten_Moron@lemmings.world 23 points 7 hours ago (1 children)

Html is a programming language.

[–] ramble81@lemm.ee 4 points 5 hours ago (1 children)

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

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

[–] Darohan@lemmy.zip 24 points 8 hours ago (1 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)

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 /.

[–] embed_me@programming.dev 4 points 6 hours ago

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

[–] Hammerheart@programming.dev 11 points 8 hours ago (1 children)

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

[–] tiredofsametab@fedia.io 3 points 2 hours 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.

[–] coldsideofyourpillow@lemmy.cafe 3 points 7 hours ago

Good pay for me, no programming socks for thee!

[–] LuxSpark@lemmy.cafe 7 points 9 hours ago (1 children)
[–] Albbi@lemmy.ca 6 points 6 hours ago

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