That camelCaseing makes me almost certain this is describing the object model of a Java program that's been cycled semester after semester by a burnt out CS professor since 1994, and this makes me feel intense pain.
It's almost never relevant to store the gender of a user. And this model is ... questionable. It's not because you only have two values that the correct representation is a boolean, actually it's almost never a boolean unless it's a flag of some sort. Enums/ADTs exist for a reason.
Working for a company that requires identity verification to create an account, we don't ask for the gender/sex. Our KYC provider reads it from the document images but we don't verify it.
The most useful think to ask for would be the salutation (Mr./Mrs./Ms./Dr./etc.) if you want to have it in official communication. And pronouns but usually communication is written in the second person, uses neutral pronouns, or uses no pronouns at all.
48
u/helloimjune Jan 29 '22
it's a flag to turn gender on or off
45
u/ato-de-suteru Jan 29 '22
That camelCaseing makes me almost certain this is describing the object model of a Java program that's been cycled semester after semester by a burnt out CS professor since 1994, and this makes me feel intense pain.
14
u/[deleted] Jan 29 '22
Your gender is either true or false :D
13
u/HanelleWeye they/she Jan 29 '22
"gender" should be an enumumeration, at least!
13
u/RimuruIsAGenderFluid Jan 29 '22
Do they have a gender? True / False
Makes sense to me
12
u/[deleted] Jan 29 '22
The different gender fields
Bool: ๐
Enum: ๐ฎ
String: ๐
8
u/ltouroumov Scala/Python Engineer Jan 29 '22
It's almost never relevant to store the gender of a user. And this model is ... questionable. It's not because you only have two values that the correct representation is a boolean, actually it's almost never a boolean unless it's a flag of some sort. Enums/ADTs exist for a reason.
Working for a company that requires identity verification to create an account, we don't ask for the gender/sex. Our KYC provider reads it from the document images but we don't verify it.
The most useful think to ask for would be the salutation (Mr./Mrs./Ms./Dr./etc.) if you want to have it in official communication. And pronouns but usually communication is written in the second person, uses neutral pronouns, or uses no pronouns at all.
6
u/iamalicecarroll Jan 29 '22
enbies: some quantum mechanics for you!
3
u/Tattieaxp Jan 29 '22
My gender is FileNotFound.
3
u/emipyon Jan 29 '22
Yes, I do have a gender. How did you know?
3
u/[deleted] Jan 29 '22
I AM BEYOND THE TYPICAL MALE FEMALE BINARY! I AM THE TRUE GENDER!
2
u/MyUntoldSecrets Jan 29 '22
If you want to argue with him, a boolean still takes up 8 bits which allows for 255 options. Could as well make it a char.
1
u/LookItVal Python Typescript Haskell C# - She/Her - Data Scientist Jan 29 '22
with use of null cases this isnt so bad
1
u/anarchy_witch Feb 09 '22
gender: String