I saw a post from someone wanting more trans memes and took that as a sign to post one of mine.
- SubArcticTundra ( @SubArcticTundra@beehaw.org ) English15•1 year ago
Nah fam Rust has you covered:
enum Gender { Male, Female, Other(str&), };
That said my Rust knowledge is shit
- XPost3000 ( @XPost3000@lemmy.ml ) English13•1 year ago
“Please Input Your Gender”:
Girl' ; DROP TABLE GENDERS
- D-ISS-O-CIA-TED ( @D-ISS-O-CIA-TED@kbin.social ) 1•11 months ago
I will never not laugh at this joke, it’s so sudden and unexpected. And the all caps is so “loud”. I love it :)
- ryuko ( @ryuko@lemmy.ml ) English7•1 year ago
Can we store gender on a quantum computer? Quibits.
- Hexorg ( @Hexorg@beehaw.org ) English6•1 year ago
Shouldn’t it be a float?
I don’t think so, but i would like to hear why a float would be better. Might change my opinion.
- magmaus3 ( @magmaus3@szmer.info ) 2•1 year ago
I think the reason why is because a float would be easier to store, while having enough possibilities for such data.
- borari ( @borari@lemmy.ml ) English3•1 year ago
Is there some array that links a specific float value to a gender? Storing something like that as a float and having to look it up outside the object itself to determine it’s actual value seems like bad practice to mezcal but I’m not a developer by trade.
- Cegorach ( @DAT@feddit.de ) English4•1 year ago
why have to store it as data at all?
- Biscuit ( @Biscuit@kbin.social ) 2•11 months ago
How else will they know how to spend their ad dollars!?
- _cnt0 ( @_cnt0@feddit.de ) English4•1 year ago
Strings are messy. I’m in favor of some covoluted struct or union.
- Biscuit ( @Biscuit@kbin.social ) 1•11 months ago
They’re also too static. Need a user provided script to handle things like gender fluid.
- biscuitsofdeath ( @biscuitsofdeath@lemmy.ml ) English4•1 year ago
Just call the variable isGender
- Midas ( @midas@ymmel.nl ) English2•11 months ago
In the app I’m building contacts have an Enum Sex (Male, Female, Unknown) and an Integer Gender which is a foreign key to gender table
- MinekPo1 ( @MinekPo1@lemmy.ml ) English2•1 year ago
:3 thanx. Hav headpats (if you wan ofc)
Thanks for the headpats
- sussy_gussy ( @sussy_gussy@wirebase.org ) English2•11 months ago
3d vector gender
- The saucest tof ( @TofuSauce@beehaw.org ) English1•1 year ago
Hell yeah!