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

Programmer Humor

30597 readers
499 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

top 30 comments
sorted by: hot top controversial new old
[–] eager_eagle@lemmy.world 15 points 1 day ago
[–] bleistift2@sopuli.xyz 51 points 2 days ago (1 children)
[–] verdare@piefed.blahaj.zone 35 points 2 days ago (1 children)

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

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

Nope. The check should be in a while loop

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

Correct code:

int getAge()
{
    return 6578;
}
[–] n7gifmdn@lemmy.ca 5 points 2 days ago (1 children)
[–] wewbull@feddit.uk 5 points 1 day ago (1 children)
[–] BlackPenguins@lemmy.world 1 points 1 day ago

Or the hip soccer mom

[–] ZoteTheMighty@lemmy.zip 4 points 2 days 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 2 days ago* (last edited 2 days ago) (1 children)
def verify_age(age):
    return age is not None
[–] SpaceNoodle@lemmy.world 14 points 2 days ago

Unacceptable. All my friends are None

[–] CodiUnicorn@programming.dev 4 points 2 days ago

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

There's only one thing worse than a rapist

[–] Ghostie@lemmy.zip 3 points 2 days ago* (last edited 2 days ago)

Troll em with a >