this post was submitted on 23 Mar 2026
559 points (98.4% liked)

Programmer Humor

30585 readers
4407 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 32 comments
sorted by: hot top controversial new old
[–] eager_eagle@lemmy.world 25 points 1 day ago
[–] bleistift2@sopuli.xyz 89 points 1 day ago (1 children)
[–] verdare@piefed.blahaj.zone 44 points 1 day ago (1 children)

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

[–] elvith@feddit.org 17 points 1 day ago (1 children)
bool isChild() {
  pid_t result= fork()
  return (result == 0)
}
[–] SpaceNoodle@lemmy.world 9 points 1 day ago

Nope. The check should be in a while loop

[–] username_1@programming.dev 39 points 1 day ago (3 children)

Correct code:

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

Or the hip soccer mom

[–] ZoteTheMighty@lemmy.zip 7 points 1 day 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 31 points 1 day ago* (last edited 1 day ago) (1 children)
def verify_age(u: User) -> bool:
    return hasattr(u, "age") and u.age is not None
[–] SpaceNoodle@lemmy.world 15 points 1 day ago (1 children)

Unacceptable. All my friends are None

[–] lime@feddit.nu 2 points 1 day ago* (last edited 1 day ago)

*to the tune of California Dreamin'*

[–] CodiUnicorn@programming.dev 5 points 1 day ago

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

There's only one thing worse than a rapist

[–] Ghostie@lemmy.zip 4 points 1 day ago* (last edited 1 day ago)

Troll em with a >