this post was submitted on 10 May 2026
298 points (99.0% liked)

Programmer Humor

31399 readers
1010 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] Hadriscus@jlai.lu 11 points 5 days ago (12 children)

What do you use instead of booleans ? floats ?

[–] MultipleAnimals@sopuli.xyz 43 points 5 days ago (2 children)

strings "true" and "false" ofc like any sane developer

[–] Valmond@lemmy.dbzer0.com 28 points 4 days ago (1 children)

I got a better one: O for true and N for false.

Seen in production for quite important stuff (payment requests).

O is from Oui, N from Non, of course!

😐🫤

[–] felbane@lemmy.world 3 points 3 days ago (1 children)

This is awful and aweful at the same time.

[–] Valmond@lemmy.dbzer0.com 1 points 2 days ago

Horrible even.

[–] Hadriscus@jlai.lu 27 points 5 days ago (1 children)
[–] kubica@fedia.io 32 points 4 days ago (1 children)

it allows for mood changes, some parts of the code can check charAt(0) == 't'others can do val != 'false' just let it flow.

[–] Hadriscus@jlai.lu 23 points 4 days ago (1 children)

lord mary joseph make it stop

[–] sznowicki@lemmy.world 21 points 4 days ago

And for double fun if the output doesn’t matter you can make if endsWith(“e”).

load more comments (9 replies)