News for hackers. Stuff that matters.
Re:A curated list of falsehoods programmers believe by jmnicolas on Tuesday September 08, 2020 @09:25AM (#24408102)
> My system will never have to deal with names from China

I work in a small French town where Chinese people were quite rare until a few years ago. Their passports have a translation of their names in Latin alphabet, same for Russians.

However one day one of my user told me "hey I can't find some customers in your app, but I'm 100% sure I recorded them previously. Funnily they're all Chinese".

It turns out that to avoid querying the database too much I was starting to look for customers name once the user had entered at least 3 chars. Most of the Chinese names were only 2 chars like "Xi", "Wu" etc.

I clearly remember thinking at the time of writing the original code that nobody had only a 2 letter name :)

Re:A curated list of falsehoods programmers believe by silicon2401 on Tuesday September 08, 2020 @09:57AM (#24408390)
This happens with western names as well. Jo, Bo, Malcolm X.
Re:A curated list of falsehoods programmers believe by chrisfinazzo on Tuesday September 08, 2020 @11:38AM (#24409455)
Re:A curated list of falsehoods programmers believe by pletsch on Tuesday September 08, 2020 @10:34AM (#24408785)
Wasn't he just known as X though? His legal name would have been Islamic and his birth name was Little.
Re:A curated list of falsehoods programmers believe by 0x4a42 on Tuesday September 08, 2020 @10:45AM (#24408900)
If you are Malcom X and you create, let's say, a Facebook account, then your last name is X.
Re:A curated list of falsehoods programmers believe by lisper on Tuesday September 08, 2020 @11:16AM (#24409231)
Harry S Truman's middle name was the letter S.
Re:A curated list of falsehoods programmers believe by dathanb82 on Tuesday September 08, 2020 @12:53PM (#24410237)
Ditto Ulysses S Grant (though he wasn’t born with that name).
Re:A curated list of falsehoods programmers believe by ssully on Tuesday September 08, 2020 @11:10AM (#24409174)
One of my first programming tasks as an intern was figuring out why the search function for a directory couldn't find certain users. It was the same reason you have, it just didn't return results until it had 3 or more characters!
Re:A curated list of falsehoods programmers believe by BerislavLopac on Tuesday September 08, 2020 @08:14PM (#24415197)
A former UN Secretary General U Thant was actually named just Thant, with "U" being a honorific (King od like "Mr"). And the first Burmese prime minister was actually named Nu (formally U Nu). https://en.wikipedia.org/wiki/U_Nu
Re:A curated list of falsehoods programmers believe by colejohnson66 on Tuesday September 08, 2020 @09:34AM (#24408162)
I used to know of someone who’s middle name (not just initial) was “E”. One letter.
Re:A curated list of falsehoods programmers believe by DavidVoid on Tuesday September 08, 2020 @09:51AM (#24408315)
I think there's some computer scientist (or similar) whose given name is just R, I forget what their last name is though.

And apparently Johnny Cash was born J. R. Cash.

From Wikipedia:

His mother wanted to name him John and his father preferred to name him Ray, so J. R. ended up being the only compromise they could agree on. When Cash enlisted in the Air Force, he was not permitted to use initials as a first name, so he changed it to John R. Cash. In 1955, when signing with Sun Records, he started using the name Johnny Cash.

Re:A curated list of falsehoods programmers believe by silicon2401 on Tuesday September 08, 2020 @09:56AM (#24408379)
Just like Harry S Truman "Since the S did not stand for a name, Harry didn't use a period after it for most of his life."

https://www.trumanlittlewhitehouse.com/key-west/president-tr...

Re:A curated list of falsehoods programmers believe by trent_lott on Tuesday September 08, 2020 @10:16AM (#24408582)
Similarly Oppenheimer, of the Manhattan project

He thought assuming that leading J made him seem more posh and WASPy

Re:A curated list of falsehoods programmers believe by pmiller2 on Tuesday September 08, 2020 @03:25PM (#24412003)
Interesting story, but, unfortunately, it's not true. Wiki gives his full name as "Julius Robert Oppenheimer." Julius was apparently his father's name as well.

https://en.wikipedia.org/wiki/J._Robert_Oppenheimer

Re:A curated list of falsehoods programmers believe by junar on Tuesday September 08, 2020 @08:43PM (#24415397)
"E" can also be a surname or given name in Chinese. It's pronounced like "uh" in English.

https://en.wikipedia.org/wiki/E_(surname) https://en.wikipedia.org/wiki/Cai_E

Re:A curated list of falsehoods programmers believe by superhuzza on Tuesday September 08, 2020 @10:28AM (#24408716)
Interesting, now that you mention it I can't think of any French names that are 2 letters long. But in English we have tons, "Ed Mo" is a perfectly plausible name.
Re:A curated list of falsehoods programmers believe by 0x4a42 on Tuesday September 08, 2020 @10:43AM (#24408883)
There's a few french names that are 2 letters long and even some only one letter long.[1] ;-)

[1] http://www.geopatronyme.com/cdip/lettresnoms/lettres1-3.html

Re:A curated list of falsehoods programmers believe by superhuzza on Tuesday September 08, 2020 @11:18AM (#24409258)
I clicked on some of them, and most have fewer than 20 recorded instances in over 100 years. I guess it happens sometimes, but it's really not comparable to the prevalence of names like Ed, Jo, Bo etc (which aren't always contractions). The most common two letter name in France is probably something like Li or Ng.

Edit: Funny observation - when you use the system that's linked to try and look up the public records, it won't even let you search for names with less than two letters.

Re:A curated list of falsehoods programmers believe by karambahh on Tuesday September 08, 2020 @01:52PM (#24410855)
The French minister for digital affairs is, funnily enough, named Cédric O

https://en.wikipedia.org/wiki/C%C3%A9dric_O

Re:A curated list of falsehoods programmers believe by karambahh on Tuesday September 08, 2020 @01:47PM (#24410794)
I'm a friend (and former colleague) of the repo author.

That's exactly some of the cases we had to deal with some legacy invoicing systems (of which Kevin was not responsible, but I was ;))