this post was submitted on 14 Jan 2025
273 points (89.8% liked)

Programmer Humor

20006 readers
888 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
[–] ZILtoid1991@lemmy.world 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@sh.itjust.works 2 points 3 days ago

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

[–] alex@programming.dev 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?

[–] ZILtoid1991@lemmy.world 1 points 2 days ago

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