this post was submitted on 14 Jan 2025
420 points (90.9% liked)

Programmer Humor

32880 readers
1479 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
(page 2) 35 comments
sorted by: hot top controversial new old
[–] [email protected] 17 points 1 day ago* (last edited 1 day ago) (6 children)

I've been thinking about this now and again. IMO gender, if one insists on tracking it at all (which I mostly find counterproductive), would need to be a vector / tuple of floating-point values. The components would be something like:

  1. Sexual Development Index: Encodes chromosomal sex, genitalia, and other primary sexual characteristics (X/Y chromosome ratio).
  2. Hormonal Balance & Secondary Sexual Characteristics: Combines hormonal levels and the resulting secondary traits (body hair, muscle mass, etc.).
  3. Brain Structure: A dimension indicating how a person's brain structure aligns with typical male or female patterns.
  4. Gender Identity: A measure of self-identified gender, representing the psychological and social dimension.
  5. Fertility/Intersex Traits: A combined measure of fertility potential and the presence of intersex traits (e.g., ambiguous genitalia, mixed gonadal structures, etc.).

Ideally it would track the specific genes that code for all of the above factors, but unfortunately science hasn't got those down yet.

[–] [email protected] 9 points 1 day ago

Also genes is only half of it. Expression of genes is another, complicated story.

[–] [email protected] 3 points 1 day ago (1 children)

A good way would be to create as many variables as possible that map anything relevant, genes, upbringing, sexual and gender expression, etc., and then doing a PCA to reduce the defining vector to as few elements as possible.

[–] [email protected] 3 points 1 day ago

I like how you think but I'm not sure if that alone will hold water. A variable can vary wildly even though it's not very relevant to the property you're interested in, and PCA would consider such a variable to be very significant. Perhaps a neural network could find a latent space. But ideally we want the components to have some intuitive meaning for humans.

[–] [email protected] 4 points 1 day ago

Gender Identity, now with linear algebra. Those 3b1b videos are going to be super useful, but not in the way the author intended.

[–] [email protected] 2 points 1 day ago

These are all measurable except 4

load more comments (2 replies)
[–] [email protected] 16 points 1 day ago* (last edited 1 day ago) (3 children)

Gender is not a boolean value, it's a variable.

[–] [email protected] 25 points 1 day ago* (last edited 1 day ago) (1 children)

🚫 const gender

👉 var gender

[–] [email protected] 9 points 1 day ago (2 children)

khm, khm
let gender

please don't use deprecated syntax

[–] [email protected] 6 points 1 day ago

May be gdscript

load more comments (1 replies)
[–] [email protected] 14 points 1 day ago (1 children)

And liable to type conversion errors and precision loss.

[–] [email protected] 9 points 1 day ago

Jesus, why'd you have to bring floating point and machine precision into the conversation? Now I won't sleep. And the nightmares will be worse than before.

[–] [email protected] 5 points 1 day ago

A boolean variable?

[–] [email protected] 7 points 1 day ago

We may have discovered gender entropy, Shannon would be proud

[–] [email protected] 7 points 1 day ago (1 children)
[–] [email protected] 3 points 1 day ago (1 children)

0100100100100111011011010010000001100001001000000111001001101111011000100110111101110100001000000110000101110100011101000111001001100001011000110111010001100101011001000010000001110100011011110010000001101101011000010110011101101110011001010111010001110011

[–] [email protected] 1 points 1 day ago

There are 2⁶⁴ genders

[–] [email protected] -4 points 1 day ago (16 children)

No Y = 0

Presence of Y = 1

Looks like you can express it with binary if you want, though you would need an interpreter

[–] [email protected] 1 points 22 hours ago (1 children)

except that genetics isn't that simple, there's many many things that go into structuring your body. Even biological sex isn't binary, there's plenty of overlap. People can literally be born with both sets of genitals afaik.

load more comments (1 replies)
load more comments (15 replies)
[–] [email protected] 3 points 1 day ago (1 children)

As it is not stable I'd go with a database.

Sqlite.

[–] [email protected] 5 points 1 day ago (1 children)

Better go with MySQL to ensure foreign keys comstrains

load more comments (1 replies)
load more comments
view more: ‹ prev next ›