Hacker News new | ask | show | jobs
by Retric 3829 days ago
I think that map should be part of every intro CS course. It's a great intro to a world where no you can't just use a bit to store gender. And names, yea lets not talk about names.
1 comments

>no you can't just use a bit to store gender.

Why not? The bit can store male/female and you can leave it NULL for "prefer not to say".

A bit does not get 3 values.

https://en.m.wikipedia.org/wiki/Bit

True, though within a database you can leave a field as NULL.