this post was submitted on 23 Mar 2026
369 points (98.7% liked)

Programmer Humor

30991 readers
1988 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
 

https://defcon.social/@fortyseven/116279569744717982

i miss when the law was trying to seem serious

all 30 comments
sorted by: hot top controversial new old
[–] bleistift2@sopuli.xyz 51 points 3 weeks ago (1 children)
[–] Alexstarfire@lemmy.world 10 points 3 weeks ago (1 children)
[–] verdare@piefed.blahaj.zone 35 points 3 weeks ago (1 children)

I don’t see a call to fork(), so there’s clearly no child here.

[–] elvith@feddit.org 11 points 3 weeks ago (1 children)
bool isChild() {
  pid_t result= fork()
  return (result == 0)
}
[–] SpaceNoodle@lemmy.world 8 points 3 weeks ago

Nope. The check should be in a while loop

[–] username_1@programming.dev 25 points 3 weeks ago (3 children)

Correct code:

int getAge()
{
    return 6578;
}
[–] bitjunkie@lemmy.world 9 points 3 weeks ago
[–] n7gifmdn@lemmy.ca 5 points 3 weeks ago (1 children)
[–] wewbull@feddit.uk 5 points 3 weeks ago (1 children)
[–] BlackPenguins@lemmy.world 1 points 3 weeks ago

Or the hip soccer mom

[–] ZoteTheMighty@lemmy.zip 4 points 3 weeks ago

Le Website: Wow, what are the odds this person using MY WEBSITE was born in 1900 on January 1st? They must be the oldest person in the world!

Le me: is 14

[–] lime@feddit.nu 22 points 3 weeks ago* (last edited 3 weeks ago) (1 children)
def verify_age(age):
    return age is not None
[–] SpaceNoodle@lemmy.world 14 points 3 weeks ago

Unacceptable. All my friends are None

[–] eager_eagle@lemmy.world 16 points 3 weeks ago
[–] CodiUnicorn@programming.dev 4 points 3 weeks ago

"I fear no man. But that thing, it scares me."

[–] agamemnonymous@sh.itjust.works 4 points 3 weeks ago

There's only one thing worse than a rapist