this post was submitted on 21 Feb 2025
4 points (100.0% liked)

Programmer Humor

25425 readers
1298 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
 
all 11 comments
sorted by: hot top controversial new old
[–] Dyskolos@lemmy.zip 3 points 5 months ago (3 children)

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

[–] jballs@sh.itjust.works 1 points 5 months ago

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.

[–] noughtnaut@lemmy.world 1 points 5 months ago

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

[–] merc@sh.itjust.works 0 points 5 months ago (1 children)

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.

[–] underreacting@literature.cafe 2 points 2 months ago

I visualized "try" as watching a young child climb something that might be out of their comfort zone, so you're letting them, but stay ready to "catch" them if something goes wrong. I suppose "throw" would be if they soiled themselves in their fall, you can throw them back into the arms of their loving parent for cleaning.

But fuck_around, find_out and yeet would be fantastic.

[–] 9point6@lemmy.world 1 points 5 months ago (1 children)

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

[–] Demigodrick@lemmy.zip 1 points 5 months ago
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.

[–] mogoh@lemmy.ml 0 points 5 months ago* (last edited 5 months ago) (1 children)
play_stupid_games {
    // ...
} win_stupid_prizes(thePrize) {
    // ...
}
[–] bizzle@lemmy.world 0 points 5 months ago (1 children)

I always thought it was "prizes"

[–] Amanduh@lemm.ee 0 points 5 months ago (1 children)