this post was submitted on 25 Feb 2026
385 points (99.5% liked)

Programmer Humor

30129 readers
1611 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 21 comments
sorted by: hot top controversial new old
[–] morgunkorn@discuss.tchncs.de 47 points 4 days ago (2 children)
try {
    anal();
} catch() {
    std();
}
[–] sidelove@lemmy.world 21 points 4 days ago (1 children)
try {
    anal();
} catch (HIV) {
    die('wear a condom next time');
}
[–] zero_spelled_with_an_ecks@programming.dev 36 points 4 days ago (1 children)

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

[–] Redjard@reddthat.com 13 points 4 days ago
try {
    anal();
} catch (HIV) {
    loop {
        sleep(1000000000);
        if HIV.has_cure {break}
    }
}
[–] Luccus@feddit.org 2 points 3 days ago

I will use this to make my code unattractive for AI.

[–] Speiser0@feddit.org 27 points 4 days ago

KISS in unsafe blocks does make sense.

[–] baduhai@sopuli.xyz 19 points 4 days ago (1 children)

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

[–] blackn1ght@feddit.uk 19 points 4 days ago

I think that's the result of dependency injection.

[–] Laser@feddit.org 15 points 4 days ago

πŸ‘‰πŸ‘ˆ

[–] Jayjader@jlai.lu 4 points 3 days ago

You can use me after free() all you want, babe

[–] gravitas_deficiency@sh.itjust.works 9 points 4 days ago (2 children)
[–] Ziglin@lemmy.world 8 points 4 days ago (3 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

[–] vithigar@lemmy.ca 4 points 4 days ago

Also exists in C#, where it allows you to use pointers.

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

Some people write their entire codebase within those parentheses.

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

[–] peoplebeproblems@midwest.social 7 points 4 days ago (1 children)

They like to live ~~dangerously~~ unsafely

:3 idk should we try the unsafe code?

[–] riskable@programming.dev 3 points 4 days ago

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

[–] sp3ctr4l@lemmy.dbzer0.com 2 points 4 days ago

Reply hazy, try again.

(eventually something will catch)