this post was submitted on 22 Jun 2023
89 points (93.2% liked)

Programmer Humor

33322 readers
808 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

As collected from /r/programmerhumor. I think I got all of them.

top 20 comments
sorted by: hot top controversial new old
[–] [email protected] 10 points 2 years ago (4 children)

These are good but none are compatible with the php gender class.

[–] [email protected] 9 points 2 years ago* (last edited 2 years ago) (1 children)

A weirdly limited selection, too. Like, what if you're a Somali?

Look at me, I am your gender now.

[–] zqwzzle 5 points 2 years ago* (last edited 2 years ago) (1 children)

So I found a twitter thread talking about this, and the documentation page seems to indicate it's used as a lookup for a name to indicate the most likely gender of that name is. https://pecl.php.net/package/gender/0.6.0

https://twitter.com/Foone/status/1343285800369147904

[–] zqwzzle 5 points 2 years ago* (last edited 2 years ago) (2 children)

The country inclusion is odd, but then again apple also does this with oddly specific (to someone living in the west) family relations that exist in other countries/cultural regions. https://developer.apple.com/documentation/contacts/cnlabelcontactrelationeldercousinmotherssiblingsdaughterorfatherssistersdaughter

[–] [email protected] 3 points 2 years ago (1 children)

That's neat. I don't suppose there's an anthropology community yet?

[–] zqwzzle 1 points 2 years ago (1 children)

I didn't see one in the global search.

[–] [email protected] 2 points 2 years ago* (last edited 2 years ago)

The Fediverse is imperfectly connected, unfortunately, so you're not guaranteed to see everything that exists on your instance unless you're specifically looking for it. Hopefully features will be introduced to avoid this exact duplication problem.

[–] [email protected] 2 points 2 years ago* (last edited 2 years ago) (1 children)

From the documentation, it appears that the country codes are for localization presumbly of the names of the genders.

Edit: Ah, others already said this (didn't refresh and kbin doesn't update this automatically). Refer to above.

[–] zqwzzle 1 points 2 years ago

Yeah I'm still getting used to this federation thing too.

[–] [email protected] 3 points 2 years ago

My gender is ERROR_IN_NAME 😎

[–] [email protected] 1 points 2 years ago (1 children)

What in the hell is KAZAKH_USBEK?

[–] [email protected] 2 points 2 years ago

Kazakhstan / Uzbekistan. Weird that they're considered the same country by this class

[–] zqwzzle 5 points 2 years ago* (last edited 2 years ago)

https://imgur.com/gallery/HdFhJZE Edit: The link from the post doesn't appear on the mlem app right now, here it is for those on mobile.

[–] [email protected] 4 points 2 years ago (1 children)

Some of these are confusing sex with gender, but overall I had a good laugh

[–] zqwzzle 1 points 2 years ago

Yeah the chromosome one definitely was as well as a couple others.

[–] [email protected] 3 points 2 years ago

unironically this

[–] [email protected] 3 points 2 years ago

I didn't expect that "binary"

[–] [email protected] 2 points 2 years ago
[–] [email protected] 1 points 2 years ago

Suddenly knowing what gender we are is a IQ test.

load more comments
view more: next ›