this post was submitted on 15 May 2025
1128 points (98.5% liked)

Programmer Humor

23417 readers
1648 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
[–] ricecake@sh.itjust.works 134 points 1 week ago (23 children)

I set all 8 bits to 1 because I want it to be really true.

[–] laranis@lemmy.zip 94 points 1 week ago* (last edited 1 week ago) (18 children)

01111111 = true

11111111 = negative true = false

[–] VonReposti@feddit.dk 34 points 1 week ago (4 children)

What if it's an unsigned boolean?

[–] ivanovsky@lemm.ee 25 points 1 week ago

Cthulhu shows up.

[–] laranis@lemmy.zip 3 points 1 week ago

Common misconception... Unsigned booleans (ubool) are always 16-bits.

load more comments (13 replies)
load more comments (17 replies)