this post was submitted on 14 Jan 2025
264 points (89.5% liked)

Programmer Humor

20002 readers
1380 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] 4 points 3 days ago (4 children)

Gender is obviously a signed byte.

[–] [email protected] 3 points 3 days ago* (last edited 3 days 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
}
[–] 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.

load more comments (2 replies)
load more comments (2 replies)