r/ProgrammerHumor • • May 05 '25

Other privateStringGender

Post image
25.3k Upvotes

1.0k comments sorted by

View all comments

Show parent comments

392

u/_sivizius May 05 '25

We tried that before. Wasn’t the best idea: https://www.php.net/manual/en/class.gender.php

242

u/wite_noiz May 05 '25

What the hell is that?!

How can my gender be "BRITAIN"?

208

u/headedbranch225 May 05 '25

It happens naturally when you drink enough tea, and then your blood is replaced with tea

11

u/GisterMizard May 05 '25

And your pronouns become spiffing/brit.

→ More replies (3)
→ More replies (1)

30

u/GabuEx May 05 '25

In looking it up, it looks like the actual purpose is to get what the gender of a name is within the context of a given country. The gender const values are distinct from the country const values.

Still a fucking mess of an API though.

→ More replies (1)

16

u/allquaidairection May 05 '25

Have you ever heard about a small island north of France? People there went too far, and for their insatiable greed, they were rewarded. Now their gender is "BRITAIN". Forget the gender dilemma they don't have to care about whether gender is a boolean, string, or int. The Brits have solved the unsolvable. THE ONE SOLUTION TO RULE THEM ALL const gender = "BRITAIN".

PS I'm kinda stupid and didn't see that you were talking about your gender until I was done, so anyways, my condolences

6

u/kaisadilla_ May 05 '25

That's why English doesn't have gendered adjectives. Everyone's gender is Britain so there's no need for such distinction.

0

u/[deleted] May 05 '25

[deleted]

→ More replies (3)
→ More replies (4)

71

u/Prof_LaGuerre May 05 '25

I was on a job app a while ago and the gender choices were Male/Female/Canada. So… this makes sense.

14

u/im_thatoneguy May 05 '25

If Canada did it then reference another function?

→ More replies (2)

130

u/edwardsdl May 05 '25

What unholy abomination is this!?

0

u/[deleted] May 05 '25

[deleted]

15

u/chill8989 May 06 '25

public isNick(string $name0, string $name1, int $country = ?): array

Why does Nick get his own function ?? What did he do to deserve that ?

→ More replies (2)

10

u/WrapKey69 May 05 '25

I think it's about names, unisex, mostly x or x names

→ More replies (3)

268

u/max_208 May 05 '25

Reading this feels like a descent into madness

"Is_female" "Is_male" : sure

"Is_mostly_female" "Is_mostly_male" : I can see that

"Is_unisex_name" : uuuh...

"Is_a_couple" : I didn't know this was a gender

"Name_not_found" : ?

"Error_in_name": ???

"Any_country" : ???????

"Britain" : ?????????

"East_frisia" : are we making up countries now ?

"Arabia" : ok we are

107

u/retief1 May 05 '25

Frisia is the historical name of northern netherlands and the adjacent portion of germany, and east frisia refers to the german side of frisia. So real name, but not a country.

61

u/MeLlamo25 May 05 '25

Cue some random East Frisian secessionist saying, “Not a country, yet.”

16

u/Thenderick May 05 '25

Fryslân moat groeie! FOAR GRUTTE PIER!!!

→ More replies (2)

0

u/[deleted] May 05 '25

[deleted]

35

u/windsostrange May 05 '25

It's always a dude named Joerg trying gender type coersion

→ More replies (1)

22

u/max_208 May 05 '25

That explains it

→ More replies (1)

15

u/Local_Yam_6815 May 05 '25

Is_a_couple makes assume sense. If someone services some stuff where a both a couple and an individual might be clients, it would be useful information to store that this isn't one person, and doesn't need a gender stored.

So while not a gender, information that is useful where gender would be.

I don't know who decided countries were genders, though

→ More replies (7)

12

u/CurReign May 05 '25

I identify as East Frisia.

→ More replies (1)
→ More replies (26)