Live data from Hacker News

A curated list of falsehoods programmers believe

github.com

21–30 of 128 posts

Re: A curated list of falsehoods programmers believe

#21
post #17

Very true, we all know there are 92 genders

You are right. I don't understand why developers should take into consideration any possible psychological quirk of any potential user.

The only circumstance I can think of when it is simultaneously true that gender must be recorded and that edge cases (like XXY chromosomes) are not important, is that languages have gendered words — but even in German you can have linguistic constructs to get around that: https://youtu.be/mHYD5cex54A

Re: A curated list of falsehoods programmers believe

#23
post #17

Very true, we all know there are 92 genders

You are right. I don't understand why developers should take into consideration any possible psychological quirk of any potential user.

No, the issue is quite simply: why does your system care what gender the person has? Unless it has a specific need for it, don't even bother

You might ask if it should use Mr./Ms. (or Dr. or some other academic title) etc but even that is a bit anachronistic. Maybe this makes sense if you're sending mail to your customer, but even then.

How to solve 50% of your GDPR troubles: stop asking for data you have absolutely no use for (and no, selling customer data is not a legitimate use)

Re: A curated list of falsehoods programmers believe

#24
post #4

After reading the Falsehoods Programmers Believe About Names, I wonder, what would you recommend as a universal way to store users's names? There seems to be two main options: Store the name in a single field, be correct but lose the option to sort the names reliably. Store the name in two fields, have the users bend over our western form standards but be able to search and sort easily. Do you have any real life expe…

>Store the name in two fields, have the users bend over our western form standards but be able to search and sort easily.

You can't search and sort easily if the names are stored in Japanese. You need 4 fields for that.

Edit: now that I think about it I could think of a disgustingly hacky way to squash them into 2 fields and retain those properties, and by extension into a single field and retain those properties.

Re: A curated list of falsehoods programmers believe

#25

I really enjoy these, but where can I find an explanation of what each falsehood means (in particular: the network one)? I mean, now that I know I’m wrong, how do I become right?

Yup, I don't like some of the lists that just lists falsehoods without providing what one's supposed to do about it.

Re: A curated list of falsehoods programmers believe

#27
post #13
post #4

After reading the Falsehoods Programmers Believe About Names, I wonder, what would you recommend as a universal way to store users's names? There seems to be two main options: Store the name in a single field, be correct but lose the option to sort the names reliably. Store the name in two fields, have the users bend over our western form standards but be able to search and sort easily. Do you have any real life expe…

> what would you recommend as a universal way to store users's names? It's unsolvable problem. Names are locale and context dependent and there is no way to translate any given name from it's canonical form (which is nonexistent) to any context you would need (except identity function obv). So you store in-context representation(s) of name and don't transform ever. In practice that means you have one or two fields wi…

Let's just rename everyone a GUID and be done with it.

Re: A curated list of falsehoods programmers believe

#28
post #13

Earlier quoted context omitted.

> what would you recommend as a universal way to store users's names? It's unsolvable problem. Names are locale and context dependent and there is no way to translate any given name from it's canonical form (which is nonexistent) to any context you would need (except identity function obv). So you store in-context representation(s) of name and don't transform ever. In practice that means you have one or two fields wi…

Let's just rename everyone a GUID and be done with it.

And pronounce it in NATO alphabet.

Re: A curated list of falsehoods programmers believe

#30
post #4

After reading the Falsehoods Programmers Believe About Names, I wonder, what would you recommend as a universal way to store users's names? There seems to be two main options: Store the name in a single field, be correct but lose the option to sort the names reliably. Store the name in two fields, have the users bend over our western form standards but be able to search and sort easily. Do you have any real life expe…

I've dealt with that on a project for Kuwait embassy. The solution was to create a 2 fields (columns) in a separate table that was linked by ID to main "users" table and the UI would ask the user to add whatever wanted and name the field. Then when searching the algorithm would categorize the most used ones and present them from time to time to Admin that would manually add as options for general search UI. As times passed on and more data was entered this way became better and better allowing for a more fine tuning of searchable data.

I shit you not, there were fields added there that our Western thinking would never dream they are needed, for example plenty of old people from Papua New Guinea added "Grandfather initial" to their name. Or others added "tribe name" as a meaning to somehow show that they are part of an extended family.

Post reply on HN