this post was submitted on 25 Feb 2026
271 points (98.9% liked)

Programmer Humor

30006 readers
2455 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 14 comments
sorted by: hot top controversial new old
[–] morgunkorn@discuss.tchncs.de 25 points 4 hours ago (1 children)
try {
    anal();
} catch() {
    std();
}
[–] sidelove@lemmy.world 14 points 4 hours ago* (last edited 4 hours ago) (1 children)
try {
    anal();
} catch (HIV) {
    die('wear a condom next time');
}
[–] zero_spelled_with_an_ecks@programming.dev 19 points 4 hours ago (1 children)

That's legacy code from the 80s. Please update it when you get the chance.

[–] Redjard@reddthat.com 5 points 2 hours ago
try {
    anal();
} catch (HIV) {
    loop {
        sleep(1000000000);
        if HIV.has_cure {break}
    }
}
[–] baduhai@sopuli.xyz 11 points 4 hours ago (1 children)

Pregnant Β―\_(ツ)_/Β―

[–] blackn1ght@feddit.uk 12 points 3 hours ago

I think that's the result of dependency injection.

[–] Speiser0@feddit.org 9 points 4 hours ago

KISS in unsafe blocks does make sense.

[–] Laser@feddit.org 12 points 5 hours ago

πŸ‘‰πŸ‘ˆ

[–] sp3ctr4l@lemmy.dbzer0.com 1 points 2 hours ago

Reply hazy, try again.

(eventually something will catch)

[–] gravitas_deficiency@sh.itjust.works 4 points 5 hours ago (1 children)
[–] Ziglin@lemmy.world 2 points 24 minutes ago (1 children)

The unsafe rust keyword basically just lets you declare a scope in which some memory checks do not need to pass for the program to compile.

[–] tetris11@feddit.uk 1 points 8 minutes ago* (last edited 8 minutes ago)

Some people write their entire codebase within those parentheses.

^me.^ ^I'm^ ^talking^ ^about^ ^me^

[–] riskable@programming.dev 2 points 4 hours ago

It would turn into a prince! An unstable prince of undefined behavior.