this post was submitted on 03 Jun 2023
58 points (91.4% liked)

Memes

45620 readers
1730 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS
 

I saw a post from someone wanting more trans memes and took that as a sign to post one of mine.

top 17 comments
sorted by: hot top controversial new old
[–] XPost3000@lemmy.ml 12 points 1 year ago

"Please Input Your Gender": Girl' ; DROP TABLE GENDERS

[–] SubArcticTundra@beehaw.org 12 points 1 year ago

Nah fam Rust has you covered:

enum Gender {
  Male,
  Female,
  Other(str&),
};

That said my Rust knowledge is shit

[–] ryuko@lemmy.ml 6 points 1 year ago

Can we store gender on a quantum computer? Quibits.

[–] Hexorg@beehaw.org 6 points 1 year ago (1 children)

Shouldn’t it be a float?

[–] a_random_fox@lemmy.ml 1 points 1 year ago (1 children)

I don't think so, but i would like to hear why a float would be better. Might change my opinion.

[–] magmaus3@szmer.info 2 points 1 year ago (1 children)

I think the reason why is because a float would be easier to store, while having enough possibilities for such data.

[–] borari@lemmy.ml 3 points 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.

[–] DAT@feddit.de 4 points 1 year ago (1 children)

why have to store it as data at all?

[–] Biscuit@kbin.social 2 points 1 year ago

How else will they know how to spend their ad dollars!?

[–] _cnt0@feddit.de 4 points 1 year ago (1 children)

Strings are messy. I'm in favor of some covoluted struct or union.

[–] Biscuit@kbin.social 1 points 1 year ago

They’re also too static. Need a user provided script to handle things like gender fluid.

[–] biscuitsofdeath@lemmy.ml 4 points 1 year ago

Just call the variable isGender

[–] MinekPo1@lemmy.ml 2 points 1 year ago (1 children)

:3 thanx. Hav headpats (if you wan ofc)

[–] a_random_fox@lemmy.ml 2 points 1 year ago

Thanks for the headpats

[–] midas@ymmel.nl 2 points 1 year 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

[–] sussy_gussy@wirebase.org 2 points 1 year ago

3d vector gender

[–] zifnab25@hexbear.net 1 points 1 year ago

barbarian Float Gender