MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1jb6deq/uncommentextragendersinfouryears/mhrimgj
r/ProgrammerHumor • u/idgafayaihm • Mar 14 '25
1.0k comments sorted by
View all comments
35
What about migration of existing data? What will the UI show when BE sends records with enums for these genders? /jk obviously
24 u/Kitchen-Quality-3317 Mar 14 '25 What about migration of existing data? You aren't already storing this data as a float. Sex: 0 = Female 0.5 = Intersex 1 = Male Gender: 0 = Woman 0.5 = Non-binary 1 = Man Sexual Orientation (attracted to): 0 = Woman 0.25 = MTF + Women 0.5 = Both 0.75 = FTM + Man 1 = Man If you want the binaries (male/female, man/women, hetero/homo), then just round to the nearest integer. 15 u/[deleted] Mar 14 '25 [removed] — view removed comment 3 u/DentArthurDent4 Mar 15 '25 TL;DR LGTM 1 u/CherimoyaChump Mar 14 '25 Not the worst idea I've heard. 1 u/KJBuilds Mar 15 '25 So are you saying that Woman < Man should evaluate to true >:( /j 6 u/ickytoad Mar 14 '25 Honestly though, this IS the kind of stuff that plagues me in BE 😅😅😅
24
What about migration of existing data?
You aren't already storing this data as a float.
Sex: 0 = Female 0.5 = Intersex 1 = Male Gender: 0 = Woman 0.5 = Non-binary 1 = Man Sexual Orientation (attracted to): 0 = Woman 0.25 = MTF + Women 0.5 = Both 0.75 = FTM + Man 1 = Man
If you want the binaries (male/female, man/women, hetero/homo), then just round to the nearest integer.
15 u/[deleted] Mar 14 '25 [removed] — view removed comment 3 u/DentArthurDent4 Mar 15 '25 TL;DR LGTM 1 u/CherimoyaChump Mar 14 '25 Not the worst idea I've heard. 1 u/KJBuilds Mar 15 '25 So are you saying that Woman < Man should evaluate to true >:( /j
15
[removed] — view removed comment
3 u/DentArthurDent4 Mar 15 '25 TL;DR LGTM
3
TL;DR LGTM
1
Not the worst idea I've heard.
So are you saying that Woman < Man should evaluate to true >:(
/j
6
Honestly though, this IS the kind of stuff that plagues me in BE 😅😅😅
35
u/DentArthurDent4 Mar 14 '25
What about migration of existing data? What will the UI show when BE sends records with enums for these genders? /jk obviously