- cross-posted to:
- programmerhumor@lemmy.ml
- cross-posted to:
- programmerhumor@lemmy.ml
You must log in or # to comment.
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.
A boolean, so 8 bits of freedom to fill up
Even booleans take up 8 bits. And that’s a lot of wasted space.
Solution: 1 bit computer
That’s why you use bitarrays and bitflags instead when you need more than just one or two arguments for a function.
Gender is a pointer
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.
isMale