this post was submitted on 14 Jan 2025
280 points (90.0% liked)

Programmer Humor

20188 readers
1758 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
[–] Neptr@lemmy.blahaj.zone 4 points 2 weeks ago (4 children)

Gender is obviously a signed byte.

[–] ZILtoid1991@lemmy.world 3 points 2 weeks ago* (last edited 2 weeks ago) (3 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
}
[–] alex@programming.dev 1 points 2 weeks 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 weeks ago

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

load more comments (1 replies)
load more comments (1 replies)