483
uhn 🥺 (lemmy.blahaj.zone)
all 21 comments
sorted by: hot top controversial new old
[-] morgunkorn@discuss.tchncs.de 59 points 1 week ago
try {
    anal();
} catch() {
    std();
}
[-] sidelove@lemmy.world 29 points 1 week ago* (last edited 1 week ago)
try {
    anal();
} catch (HIV) {
    die('wear a condom next time');
}

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

[-] Redjard@reddthat.com 17 points 1 week ago
try {
    anal();
} catch (HIV) {
    loop {
        sleep(1000000000);
        if HIV.has_cure {break}
    }
}
[-] Luccus@feddit.org 3 points 1 week ago

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

[-] Speiser0@feddit.org 31 points 1 week ago

KISS in unsafe blocks does make sense.

[-] baduhai@sopuli.xyz 25 points 1 week ago

Pregnant ¯\_(ツ)_/¯

[-] blackn1ght@feddit.uk 30 points 1 week ago

I think that's the result of dependency injection.

[-] Laser@feddit.org 20 points 1 week ago

👉👈

[-] Ziglin@lemmy.world 9 points 1 week ago

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 5 points 1 week ago* (last edited 1 week ago)

Some people write their entire codebase within those parentheses.

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

[-] peoplebeproblems@midwest.social 8 points 1 week ago

They like to live ~~dangerously~~ unsafely

Nah I know I was just shitposting lol

[-] vithigar@lemmy.ca 4 points 1 week ago

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

[-] HeyThisIsntTheYMCA@lemmy.world 2 points 1 week ago

:3 idk should we try the unsafe code?

[-] Jayjader@jlai.lu 6 points 1 week ago

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

[-] riskable@programming.dev 5 points 1 week ago

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

[-] sp3ctr4l@lemmy.dbzer0.com 3 points 1 week ago

Reply hazy, try again.

(eventually something will catch)

this post was submitted on 25 Feb 2026
483 points (99.2% liked)

Programmer Humor

30224 readers
313 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