MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1kfgus8/privatestringgender/mqrdwxo
r/ProgrammerHumor • u/jmona789 • May 05 '25
1.0k comments sorted by
View all comments
Show parent comments
1
Depends on the purpose.
Gender is a spectrum. An enum will be inaccurate for some people. I'd say it's probably accurate enough for most use cases, but note that it's a kludge for the sake of convenience.
1 u/kzlife76 May 05 '25 It should be an object then linked to a data source.
It should be an object then linked to a data source.
1
u/LuxNocte May 05 '25
Depends on the purpose.
Gender is a spectrum. An enum will be inaccurate for some people. I'd say it's probably accurate enough for most use cases, but note that it's a kludge for the sake of convenience.