ITT: How to decode gender

How does Sup Forums decode sex/gender/muh orientation?
YLYL edition

Other urls found in this thread:

en.wikipedia.org/wiki/ISO/IEC_5218
twitter.com/SFWRedditGifs

nullable bool

>has penis [yes]
>is feminine [yes]

it's a fag

>has penis [yes]
>is feminine [no]

It's a real man

>has penis [no]
>is feminine [yes]

jeez, I wonder what it could be

>has penis [no]
>is feminine [no]

a fucking dyke

...

The is_feminine part refers to the penis, not the person, desu

jesus christ what the fuck

>implying I'd put efforts in painting g shit

en.wikipedia.org/wiki/ISO/IEC_5218

>name
>not two separate firstname and lastname fields
>adress
>not address
>not separated into street number, street name, city, state, country
>not a foreign key to an address table

Fucking stop.

>not two separate firstname and lastname fields
Too much assumptions about names.
>adress
>not address
>not separated into street number, street name, city, state, country
>not a foreign key to an address table
autism

>autism
The most important quality of a DB designer.

topkek

if (has_peenis == True && is_feminine ==true) {
user=trap
} else if (has_peenis == True && is_feminine ==false) {
user=transphobic_cis_scum
} else if (has_peenis == False && is_feminine ==true) {
user=ew-its-a-grill}

>==true
>==false

Use a polymorphic record

so much wrong here

>assumptions about name format
>assumptions about address format
not every country is the usa with their "states", amerinon
>address fk
enjoy having sneaky duplicates because someone changed a diacritic or capital

>enjoy having sneaky duplicates because someone changed a diacritic or capital
The same house can have multiple addresses, and the same address multiple houses

>The same house can have multiple addresses
not fixed by an fk, you need an intermediate table then
>same address multiple houses
true but i bet 50 bucks the first person to have a dupe address will spell it differently in some harmless way. enjoy fuzzy-matching the address or having close dupes

>assumptions about name format
A name is a name, if you want a pseudonym or a nick you call the field pseudonym or nick.
99.9% of the civilized world uses Firstnames and Lastnames.

>not every country is the usa with their "states", amerinon
I'm not from the US, most countries have states or state equivalents. Plus nothing prevents you from allowing NULL in that field.
Still better than not making the distinction between two cities that share a name but aren't in the same state/departement/canton/region or whatever the fuck else there is.

>enjoy having sneaky duplicates because someone changed a diacritic or capital
Not if the fk points to an intermediary table containing fks to other tables containing cities, street names, etc.
It also makes it much easier to update your db if the name of a street or city changes for example.

*intermediary

>Not if the fk points to an intermediary table containing fks to other tables containing cities, street names, etc.
overengineering for something as stupid as an address desu
unless the address is business data id just store it as a string and stop caring

>user
>id

I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

I am not a number, I am a free man

You are number 6.

if op: return fag

I resign
My life is my own

also, either you fill the db with user data which moots the point, or you use a huge-ass premade db from some aggregator and waste a ton of resources on it and piss off every other user whose address isnt in the db

Congrats OP, you win #1 most autistic thread on Sup Forums at the moment.

>Adress: String

Boyce and Codd frown upon your Shennanigans.

And that makes a difference to this user's list how?

XY chromosomes: Male
XX chromosomes: Female
XXY chromosomes: Klinefelter's
XO chromosomes: Intersex

That's all you need to know

char* gender desu
Anything else would infringe on my users' freedom to identify as whatever they want.

Can they identify as NULL?

...

Yes.

char* gender = argv[1];

printf("%s", gender);
doesn't break when I pass nothing for argv[1]

1 is dude, 0 is chic

xor = hetero
or = bi (male)
nor = bi (female)
and = gay
nand = lesbian
xnor = trans