this post was submitted on 21 Feb 2025
838 points (95.5% liked)

Programmer Humor

20039 readers
2669 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
 
top 50 comments
sorted by: hot top controversial new old
[–] mcqtom 1 points 1 hour ago

Should else be big_yikes? That seems situational to me.

[–] WhiskyTangoFoxtrot 2 points 3 hours ago

Good thing I'm sticking with GDScript.

[–] [email protected] 67 points 12 hours ago (2 children)

As much as this hurts, yeet; as an alias throw; is hilarious

[–] [email protected] 1 points 1 minute ago

Funnily enough, that is a keyword in rust.

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

Of all the gen z lingo yeet is the best.

[–] [email protected] 5 points 8 hours ago

You can yoink that word from my cold, dead hands!

[–] straightjorkin 10 points 11 hours ago (2 children)

Big "you damn kids and your phones" vibes from this

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

Every generation is peddled two insane concepts:

When they are young, they are told that they have a weird bizarre vernacular which sounds stupid to everyone else.

Then when they are old, they are told young people have a weird bizarre vernacular which sounds stupid to everyone else.

Then you die.

[–] Lemminary 1 points 9 hours ago* (last edited 9 hours ago)

Yes, and? Get off my lawn!

[–] [email protected] 9 points 11 hours ago

Aliasing no_cap and cap to true and false.....

I might have to steal that.....

[–] [email protected] 25 points 14 hours ago* (last edited 14 hours ago) (2 children)

Ugh. Just

its_giving rizz ratios vibe;

No more needless nesting plz

[–] [email protected] 4 points 11 hours ago (1 children)

Honestly, that's about an inch away from Python...

[–] [email protected] 3 points 10 hours ago (1 children)
[–] [email protected] 1 points 8 hours ago

I'm speaking from a descriptive naming concept.

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

Considering vibe is probalby float, I doubt any exceptions can be thrown there, you can eliminate another useless scope.

Even if it's not float, I'd consider burning alive anyone who overrides an operator like this anyway.

[–] Lemminary 3 points 9 hours ago

Float? Do you mean fax? Get with the program, old man

[–] [email protected] 142 points 19 hours ago (5 children)

I really really dig the fuckaround/findout. It paints the try/catch with a more dreadful undertone and reeks of mystery.

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

Yeah, I love that one.

"Try" is too hopeful. "fuck_around" makes it clear that you know what you're doing is dangerous but you're going to do it anyhow. I know that in some languages wrapping a lot of code in exception blocks is the norm, but I don't like that. I think it should be something you only use rarely, and when you do it's because you know you're doing something that's not safe in some way.

"Catch" has never satisfied me. I mean, I know what it does, but it doesn't seem to relate to "try". Really, if "try" doesn't succeed, the corresponding block should be "fail". But, then you'd have the confusion of a block named "fail", which isn't ideal. But "find_out" pairs perfectly with "fuck_around" and makes it clear that if you got there it's because something went wrong.

I also like "yeet". Partly it's fun for comedic value. But, it's also good because "throw" feels like a casual game of catch in the park. "Yeet" feels more like it's out of control, if you hit a "throw" your code isn't carefully handing off its state, it's hitting the eject button and hoping for the best. You hope there's an exception handler higher up the stack that will do the right thing, but it also might just bubble all the way up to the top and spit out a nasty exception for the user.

[–] [email protected] 27 points 16 hours ago (3 children)

The whole thing was pretty damn good all the way through. The only thing that had me wondering was

Tea

Until it got to

SpillTea

Well played.

[–] [email protected] 6 points 15 hours ago

NGL, that helped me actually understand the original function. It's been over a decade since I've touched anything related to C.

load more comments (2 replies)
[–] noughtnaut 40 points 19 hours ago (2 children)

As well as the yeet keyword, I'm really friggin' diggin' this. [modernisation required]

[–] [email protected] 24 points 17 hours ago* (last edited 17 hours ago)
#define yeet throw
#define let const auto
#define mut &
#define skibidi exit(1)

The future is now!

load more comments (1 replies)
load more comments (2 replies)
[–] iAvicenna 6 points 11 hours ago

(ノಠ益ಠ)ノ彡┻━┻

[–] [email protected] 5 points 11 hours ago

I've seen forms of this joke quite a lot in the last few years, and it never fails to make me laugh.

[–] [email protected] 14 points 14 hours ago (1 children)
[–] Psythik 9 points 11 hours ago* (last edited 11 hours ago) (1 children)

I fucking love it. Gen Z slang is so lighthearted and fun.

[–] UnfortunateShort 2 points 10 hours ago

It's because we are depressed nihilists who have given up on pretty much everything, running on gallows homour to a point where we are meming youth slang. Don't worry, we're fine haha... Ha...

[–] [email protected] 8 points 13 hours ago

This was by far the best way to explain current slang.
I got all of it No Tea

[–] 9point6 90 points 22 hours ago (2 children)

And a decade or so ago it was LOLCODE that had me mildly concerned for the wellbeing of my peers.

[–] [email protected] 98 points 22 hours ago (2 children)
HAI 1.2
CAN HAS STDIO?
IM IN YR LOOP UPPIN YR VAR TIL BOTH SAEM VAR AN 10
    VISIBLE SUM OF VAR AN 1
IM OUTTA YR LOOP
KTHXBYE

A perfectly reasonable language. None of this Gen Z rubbish.

Something something better times. Shakes stick at sky.

load more comments (2 replies)
[–] cobysev 19 points 19 hours ago (2 children)

For some reason, this just sparked an ancient memory of the Geek Code, which was a sort of signature block you could append to your emails and online bios to show off how much of a geek you were in the geekiest fashion possible.

Goddamn I'm old.

load more comments (2 replies)
[–] AeonFelis 15 points 17 hours ago (1 children)

Ah, yes. A private method for working on a public field.

load more comments (1 replies)
[–] [email protected] 25 points 19 hours ago (6 children)

That's way better than my emoji based programming language.

load more comments (6 replies)
[–] [email protected] 8 points 15 hours ago (1 children)

Too many capital letters in the gen z version.

[–] [email protected] 5 points 14 hours ago

That's what we Do.

[–] [email protected] 1 points 9 hours ago

Now I wanna see this in jive

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

@sjmarf And now someone is preparing a PR on C#’s GitHub issues… well done, well done.

[–] ScruffyDucky 39 points 21 hours ago (1 children)

For programmers who need action (cross-generational):

https://lhartikk.github.io/ArnoldC/

image

load more comments (1 replies)
[–] [email protected] 24 points 20 hours ago* (last edited 17 hours ago) (2 children)
play_stupid_games {
    // ...
} win_stupid_prizes(thePrize) {
    // ...
}
[–] [email protected] 1 points 8 hours ago

FAFO block passes better

[–] bizzle 15 points 19 hours ago (4 children)

I always thought it was "prizes"

load more comments (4 replies)
[–] Psaldorn 14 points 19 hours ago (2 children)

ratios I need this and I'm an elder millenial

load more comments (2 replies)
load more comments
view more: next ›