this post was submitted on 14 Jan 2025
265 points (89.6% liked)

Programmer Humor

20002 readers
1058 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 3 days ago* (last edited 3 days ago) (2 children)

Gender is a struct

struct Gender {
  byte binaryBias;    ///Determines male (+) or female (-) bias if present
  ubyte binaryAm;    ///Determines the amount of binary gender(s) present
  bool isTrans;    ///True if assigned at birth gender does not equal with current one
  ubyte xenoAm;    ///Determines the amount of xenogender
  uint xenoGen;    ///Xenogender selection, 0 if not applicable
  Sex* sex;    ///Pointer to the person's current sex
}
[–] activ8r 2 points 3 days ago

Now this is a gender definition I can get behind. None of that string/enum crap, just raw data.

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

That's a lot of implementation detail. Is there just a service interface I can inject to know what bathroom a person's RFID fob should open?

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

Just don't have gendered bathrooms, simple as that.