this post was submitted on 15 May 2025
1150 points (98.6% liked)

Programmer Humor

23563 readers
1704 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 135 points 2 weeks ago (23 children)

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

[–] laranis@lemmy.zip 95 points 2 weeks ago* (last edited 2 weeks ago) (18 children)

01111111 = true

11111111 = negative true = false

[–] VonReposti 34 points 2 weeks ago (4 children)

What if it's an unsigned boolean?

[–] ivanovsky@lemm.ee 25 points 2 weeks ago

Cthulhu shows up.

[–] laranis@lemmy.zip 3 points 2 weeks ago

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

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