this post was submitted on 14 Jan 2025
88 points (93.1% liked)

Programmer Humor

20106 readers
7 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
 
top 8 comments
sorted by: hot top controversial new old
[–] steventhedev@lemmy.world 13 points 2 weeks ago (1 children)

Clearly your gender field is a boolean. Which means it can be either true, false, null, or undefined. Except in javascript where for some reason it can sometimes be NaN, but only when you try to compare two people.

[–] Artyom@lemm.ee 1 points 2 weeks ago

A boolean, so 8 bits of freedom to fill up

[–] joyjoy@lemm.ee 8 points 2 weeks ago (2 children)

Even booleans take up 8 bits. And that's a lot of wasted space.

[–] ZILtoid1991@lemmy.world 3 points 2 weeks ago

That's why you use bitarrays and bitflags instead when you need more than just one or two arguments for a function.

Solution: 1 bit computer

[–] flamingo_pinyata@sopuli.xyz 4 points 2 weeks ago

Gender is a pointer

[–] bishbosh@lemm.ee 2 points 2 weeks ago

Bold of programmers to assume gender can be expressed accurately in a finite discrete system. Gonna have to bust the Taylor series for some better approximation.

[–] spongebue@lemmy.world 1 points 2 weeks ago