- There are two and only two genders.
- Okay, then there are two and only two biological genders.
- Gender is determined solely by biology.
- Okay, it’s mostly determined by biology, right?
- Please tell me it’s determined by DNA.
- Gender can be reliably determined through visual means. After all, no man would ever wear a burka.
- Once gender is set, it never changes.
- Even if the gender can change, it will only change from the one value to the other value.
- Only one gender can be “active” at the same time.
- We’re tracking gender now, so we’ve always tracked it.
- I only need to be concerned with human gender.
Source: http://www.cscyphers.com/blog/2012/06/28/falsehoods-programmers-believe-about-gender/
Haha yeah that's definitely something I can picture a programmer who thinks they're being clever doing. No ability to even encode "unknown" and unclear unless it's named something like
is_male
which would lump unknown and non-binary with female.I would argue that my point about there not being a single gender value would also be relevant to programmers and not necessarily covered by this list. You could say that's just point #2, but practically speaking it's not that gender should be a python Dict but that we shouldn't assume database entries or struct instances are describing different people just because the gender fields are present and don't match.