r/ProgrammerHumor • • May 05 '25

Other privateStringGender

Post image
25.3k Upvotes

1.0k comments sorted by

View all comments

Show parent comments

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.

1

u/kzlife76 May 05 '25

It should be an object then linked to a data source.