this post was submitted on 22 Nov 2025
503 points (98.6% liked)

Programmer Humor

27460 readers
1549 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
 

cross-posted from: https://lemmy.ml/post/39334581

top 50 comments
sorted by: hot top controversial new old
[–] staircase@programming.dev 8 points 2 hours ago (1 children)

In the language Gulf of Mexico,

you can use any letters from the word "function" (as long as they're in order)

union foo () => ()
[–] Lemminary@lemmy.world 2 points 1 hour ago* (last edited 1 hour ago)

In the language Gulf of Mexico

HUH?

Some languages start arrays at 0, which can be unintuitive for beginners. Some languages start arrays at 1, which isn't representative of how the code actually works. Gulf of Mexico does the best of both worlds: Arrays start at -1.

Oh, I see they're serious! Time to ditch JavaScript.

[–] krooklochurm@lemmy.ca 2 points 1 hour ago

Bash was derived by a team of criminally insane programmers in the bowels of a South American asylum so deep in the jungle no country can rightfully claim it as its own. It is the product of the demented keystrokes of the damned, possessing a singular logic so alien that its developers can hardly be said to be human at all.

And I wouldn't have it any other way.

[–] godrik@lemmy.world 1 points 25 minutes ago* (last edited 24 minutes ago)

Nix:

:

( although Nix doesn't allow empty bodies so it won't build )

[–] Chaser@lemmy.zip 3 points 59 minutes ago

JS:

() => {}
[–] count_dongulus@lemmy.world 8 points 4 hours ago (2 children)

Not exactly aimed at language keywords (although it is aimed at the language designers who decided abbreviations in keywords are acceptable):

I hate abbreviations in source code so fucking much. Reading is more of software engineering than writing. If you cannot be bothered to type a whole word because typing is hard for you, find a different job. Do not force others to engage in mental gymnastics to understand what the fuck a variable or function is supposed to mean.

[–] Static_Rocket@lemmy.world 6 points 3 hours ago

There was a rather famous piece of software at my last job. Guy writing it wanted job security. A lot of the core variables of the application were named based on the sounds a helicopter made. God damn onomatopoeia variables. Pretty sure that shit is still in use somewhere.

[–] crimsonpoodle@pawb.social 2 points 4 hours ago

I get that but also can be kinda nice to have density so that you can read more of the program on a single display.

[–] ulterno@programming.dev 4 points 8 hours ago

While C feels fine without having a keyword for function, I feel like bash would have benefitted from it.

[–] Meron35@lemmy.world 3 points 8 hours ago
[–] cupcakezealot@piefed.blahaj.zone 3 points 11 hours ago

basic: def fn

[–] drath@lemmy.world 15 points 15 hours ago (5 children)

funciton

Idk why but that's how I type it half the time.

[–] UnrepentantAlgebra@lemmy.world 2 points 4 hours ago (1 children)

And you can continue typing it that way for as long as you want if you set up autohotkey to automatically fix your typos.

[–] MajorasTerribleFate@lemmy.zip 1 points 4 hours ago* (last edited 4 hours ago)

Dude, I set up wild crap with Autohotkey, for a job. I had it logging in to vendor websites where it would pull up clients, compare contact info to our local system, check if recent payment had been made, pull appropriate client docs (if not already in our local system), and leave notes for me before moving onto the next client on the list. I had AHK doing most of the job I was hired for.

Thankfully, the multiple vendor websites made occasional changes to their layouts, color schemes, etc. so all my methods of navigation would inevitably break, requiring me to maintain it.

I was also building stuff where it would automatically fire off an email at certain points if there was a special change to tell the client about, if payment wasn't seen on the vendor site by certain deadlines, etc.

That job eventually fell through for unrelated reasons (they moved me off that to somewhere they needed me more, and several years later got pushed out of that position and the company entirely).

Where do I get a job that let's me build that stuff again?!

[–] MajorasTerribleFate@lemmy.zip 1 points 4 hours ago

So many of my "-tion"s end up as "-tino"s.

[–] meekah@discuss.tchncs.de 4 points 9 hours ago (2 children)

You press c and t using the same finger, and i with another. So since you need to use the same finger twice in a row, also moving it a fair distance in between, your other finger just presses the button a little bit too soon, and that's how you end up with funciton

[–] drath@lemmy.world 1 points 6 hours ago

I just recorded myself typing it a dozen of times, and it always goes as:

F - Left index U - Right middle N - Right index C - Left index T - Left middle I - Right middle O - Right ring N - Right index

I usually generally follow zones while typing, but for frequent words like this I tend to break it, which mostly make sense, like using middle finger for U to free index finger for N, and then moving it one over for a quick IO without lifting the index from N), but then that CT thing is a decades-long ingrained thing that I didn't even realize how weird it was until I looked closely at it. It reminds me of that thing that bothers me on my other kb which is ortholinear and I always struggle in games with it because I can't press 2 while holding Shift and W at the same time. On normal keyboards I use ring fingers and slightly twist my wrist clockwise, but on ortholinear it's not there, and it's actually easier to use index finger and twist the other way, or roll middle over without lifting, but it's very hard to break that habit.

[–] SlurpingPus@lemmy.world 1 points 9 hours ago (4 children)

‘c’ and ‘t’ should definitely be hit with different fingers if you do touch-typing. But with one hand, that's true.

[–] kamen@lemmy.world 1 points 51 minutes ago

Fixed. Brought to you by ortho gang.

[–] hornedfiend@sopuli.xyz 1 points 6 hours ago* (last edited 6 hours ago)

I bought this yesterday from perplexity.ai

[–] TomasEkeli@programming.dev 6 points 8 hours ago (1 children)

there's no 'i' on that keyboard?

[–] craftrabbit@lemmy.zip 8 points 14 hours ago

Won't you take me to

funcitooon?

Won't you take me to

funcitoon.

load more comments
view more: next ›