this post was submitted on 25 Feb 2026
315 points (99.1% liked)

Programmer Humor

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

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

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

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

[–] blackn1ght@feddit.uk 16 points 5 hours ago

I think that's the result of dependency injection.

[–] Speiser0@feddit.org 14 points 5 hours ago

KISS in unsafe blocks does make sense.

[–] Laser@feddit.org 13 points 7 hours ago

πŸ‘‰πŸ‘ˆ

[–] gravitas_deficiency@sh.itjust.works 6 points 6 hours ago (1 children)
[–] Ziglin@lemmy.world 2 points 1 hour ago (2 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.

Nah I know I was just shitposting lol

[–] tetris11@feddit.uk 3 points 1 hour ago* (last edited 1 hour ago) (1 children)

Some people write their entire codebase within those parentheses.

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

[–] peoplebeproblems@midwest.social 2 points 1 hour ago (1 children)

They like to live ~~dangerously~~ unsafely

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

Reply hazy, try again.

(eventually something will catch)

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

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