News for hackers. Stuff that matters.
Re:Google+ names policy discriminates against American Nativ... by harshreality on Saturday March 08, 2014 @08:31AM (#7365102)
Obligatory: patio11's Falsehoods Programmers Believe About Names

http://www.kalzumeus.com/2010/06/17/falsehoods-programmers-b... (was dead, now live, if dead again it's in google's cache)

However, until Google's (and Facebook's) absurd name restrictions (or even the idea that "proper" "official" names exist at all for humans) start seriously affecting their real customers (advertisers), they will not give a shit.

Another link, this on the consequences of real names policies: http://geekfeminism.wikia.com/wiki/Who_is_harmed_by_a_%22Rea...

Re:Google+ names policy discriminates against American Nativ... by tarblog on Saturday March 08, 2014 @09:22AM (#7365226)
I dislike when lists are written in such a way that the reader must mentally negate all of the statements the author is making. It's more difficult for me to quote or remember out of context correctly. I also feel like I learned a lot less than if the author had told me the things that are common problems and how to fix them or offered a model of names that is less-bad than the one most websites use.
Re:Google+ names policy discriminates against American Nativ... by vidarh on Saturday March 08, 2014 @10:13AM (#7365379)
The point is you shouldn't even try. The list is not there to get you to follow every point, but to illustrate that no matter what you think you can do to validate names, you're likely wrong, so don't even try. Think about what limitations are absolutely necessary for your specific usage instead.

E.g. if you want to be able to greet a user, ask them how they want to be greeted, rather than try to guess at which part of their name a user prefers to be addressed by and how to extract that part from their full name.

Re:Google+ names policy discriminates against American Nativ... by patio11 on Saturday March 08, 2014 @05:31PM (#7366645)
This is a very deliberate stylistic choice. Compare:

"People have, at this point in time, exactly one official name." <-- phrase is false

"There exist at least some people who will, at at least some instants in time, have either zero or two or more official names." <-- phrase is true

Now multiply that sort of circumlocution by 40.

I frequently receive the feedback "I wish you had identified a solution", which suggests to me maybe I missed the opportunity to title the post "Names are intractable hard and any programmer who thinks their program has solved them is wrong." I thought that was pretty explicit in the first paragraph but people seem to really WANT this problem to have a Ruby gem available such that they don't have to worry about it. I want dragons, but will live with my disappointment.

Re:Google+ names policy discriminates against American Nativ... by hyperpape on Saturday March 08, 2014 @10:03AM (#7365347)
That's the thing. I don't know if there is "a right way to do it." Maybe names are a domain that is hard enough that you can't propose the right way to handle them--you just have to know the problems that can arise, do your best for the users you expect to have, and be prepared to rework if you need to.

The problem with the google+ real names policy isn't that their algorithms aren't smart enough (though it seems that they could use some work). The problem is that they're too arrogant to recognize that their algorithms are unreliable and indifferent to the ways that this unreliability is bad for users.

Re:Google+ names policy discriminates against American Nativ... by InclinedPlane on Saturday March 08, 2014 @11:42AM (#7365600)
The problem is that handling names semantically "correctly" is a logistical nightmare that is even more difficult than dealing with timestamps and time zones.

No sane person thinks it's a good idea to just roll their own time zone implementation routinely, but people usually think rolling their own name handling system is a good idea. The purpose of patio11's advice is specifically to discourage people from doing that. And fortunately for names there are some reasonably good options, such as avoiding trying to handle names semantically at all and instead leaving them as more or less freeform user data.

Re:Google+ names policy discriminates against American Nativ... by chaz on Saturday March 08, 2014 @09:29AM (#7365243)
It's satire.

  12. People’s names are case sensitive.
  13. People’s names are case insensitive.
Edit: Let me explain ... I was responding to the parent post, and that it wasn't meant to be a logic list of rules. Individual points may be true, but the overall tone of the list and post uses humor to explain the complexity of names.

  32. People’s names are assigned at birth.
  33. OK, maybe not at birth, but at least pretty close to birth.
  34. Alright, alright, within a year or so of birth.
  35. Five years?
  36. You’re kidding me, right?
Re:Google+ names policy discriminates against American Nativ... by raverbashing on Saturday March 08, 2014 @10:10AM (#7365367)
"It's satire"

Absolutely not!

Case sensitivity varies amongst countries.

One very simple occidental example: in France names are usually written LASTNAME Firstname

So if you type Lastname and your DB doesn't normalize the capitalization of names you won't match

So for the last name the search is case insensitive but for the first name not so much.

Another example is Turkish, where there are two capital I's, one with a dot, one without.

And not alphabets have a notion of case.

Re:Google+ names policy discriminates against American Nativ... by abrowne on Saturday March 08, 2014 @12:28PM (#7365719)
> Another example is Turkish, where there are two capital I's, one with a dot, one without.

It's even more complicated: they have two letter Is, one with a dot in both lower and uppercase (İ/i) and one dotless (I/ı) in both cases. So any automatic case change needs to take this into account or the letter will get switched. This also make using fonts with fi ligatures problematic.

http://en.wikipedia.org/wiki/Dotless_I

Re:Google+ names policy discriminates against American Nativ... by lstamour on Saturday March 08, 2014 @01:52PM (#7365950)
This is also why quite a few programs have bugs when running on Turkish phones if they use locale-default case changes. Always specify a US English locale if you need to send along a certain code in uppercase, or process other inputs in ASCII. Internationalisation is tough. My favourite part is when systems don't allow last names with "special characters" including spaces, hyphens and periods.
Re:Google+ names policy discriminates against American Nativ... by rmc on Sunday March 09, 2014 @07:50AM (#7368197)
And even normalizaing capitalization of names isn't always simple. How do you correctly capitalize "mcgee"? "Mcgee" or "McGee"?
Re:Google+ names policy discriminates against American Nativ... by mcv on Saturday March 08, 2014 @10:05AM (#7365353)
It's not satire. They are both bad assumptions, bound to be false somewhere. Don't let your code rely on either of these assumptions.
Re:Google+ names policy discriminates against American Nativ... by viraptor on Saturday March 08, 2014 @09:54AM (#7365328)
Is it? I read it as: depending on culture, the name may be either case sensitive, or not. (alternatively - someone's name may use alphabet with no concept of "case")
Re:Google+ names policy discriminates against American Nativ... by GuiA on Saturday March 08, 2014 @10:00AM (#7365340)
I wouldn't call it satire; they are, as the title indicates, falsehoods. That is, if your code makes any of the assumptions listed, then you're handling names in a way that inevitably won't work for users of certain cultures.
Re:Google+ names policy discriminates against American Nativ... by hyperpape on Saturday March 08, 2014 @10:06AM (#7365357)
Case sensitive and case insensitive sound like they're the only two options, but they're not.

Take SQL as an example: are programs case-sensitive or case-insensitive? Neither!

Re:Google+ names policy discriminates against American Nativ... by specialist on Saturday March 08, 2014 @11:09AM (#7365519)
I just got bit by inconsistent case sensitivity. My tool inspects SQL schemas. I switched from hand-rolled queries, which weren't portable, to using JDBC MetaData methods. Mostly worked. Until I did a live demo. Oops. Now have a hybrid solution.
Re:Google+ names policy discriminates against American Nativ... by saraid216 on Saturday March 08, 2014 @01:31PM (#7365889)
Satire is a deliberate mockery of the subject material in order to criticize it. You don't call something satire just because one of its bullet points is kinda funny.