Live data from Hacker News

People with names that break computers

bbc.com

231–240 of 288 posts

Re: People with names that break computers

#231
post #14

Earlier quoted context omitted.

In the context of acoustics, "ts" almost always means time-step (inverse of frequency). But I don't have the faintest idea of how it would collide with the username string :|

Guessing they're scanning for parameters in a JSON object by doing something like ts = parseInt(jsonstr.indexOf("ts")+2); I wish I didn't come to this guess by seeing it in real code so many times… T_T

I just realized that our codebase is probably relatively ok...

Re: People with names that break computers

#232

Earlier quoted context omitted.

> False, you may not consider that your first name but it IS your legal name and at the end of the day that's really the only thing that matters. See, this is one of the misunderstandings from the article. Don't feel bad: many people make this mistake. But it is a mistake. Your legal name is the one you conduct business with. In my case, I conduct all business using my middle name. The fact that I was born with it do…

Legal Name = Name on your birth certificate, pure and simple. Something isn't so just because you say it is. I can say my SSN is 123-45-6789 but that doesn't make it so.

> Legal Name = Name on your birth certificate, pure and simple.

I know a few tribal members who would disagree and be correct in doing so. There are other names you sometimes get later in life depending on culture.

Re: People with names that break computers

#233

My legal name is Martin C. Martin. This has only been a problem for computer systems 2 or 3 times. Once or twice on some no-name web site, which rejected names where first and last were the same. The other time was when the company I was working at was bought by Oracle. Oracle's internal email system simply refused to create a user with the same first name as last name. (For the curious, I was born Martin C. Hilgerde…

I am reminded of "Catch-22"'s Major Major Major Major.

or General Marshall upon being promoted to 5 star which is typically called a "Marshall" or "Field Marshall". The story goes he refused that title and "General of the Army" was used as he didn't want to be Marshall Marshall.

Re: People with names that break computers

#234

Earlier quoted context omitted.

There should be an entire college course dedicated to all the various "Falsehoods Programmers Believe About Xxxx" lists. I've seen so much horribly bad code that's supposed do handle times, dates, names, addresses, etc. The spec says "Store the user's name in the database" and the programmer simply allocates a string for First Name and a string for Last Name and calls it a day. What's needed is good unit tests and a…

For the database at least, I don't see why you need unit tests or any testing at all. Assuming that you're going to require at least two names (no single-name names allowed), then a string for First Name and a string for Last Name should be sufficient. If this is a decent database, where the string can have any Unicode character, including a space, and you don't set a limit on the string length (modern databases don'…

> Assuming that you're going to require at least two names (no single-name names allowed), then a string for First Name and a string for Last Name should be sufficient.

Not even close; you're already off the rails with assumptions that break for tons of names. There's an easy way to do names decently, ask the user for their full name all in one field, and ask them for a nickname for use with the app and email and such. If you try to break their name down into parts, you're doing it wrong; names are not normally structured data, they're just unstructured free text.

Re: People with names that break computers

#235
post #66

I have had a decent number of forms that would not allow me to enter my last name because it contains a space: De Kok. Apparently over the centuries americans coming from Europe would drop spaces. For instance Vanderbilt is a Dutch name, that stems from the original Van der Bilt (means from the Bilt, which is a Dutch city) So now American programmers assume a space in a last name (or a dash for that matter) never hap…

My last name does not have a space but probably did at some point in time (DeFelippi). Some idiot at the passport office put a space in it (De Felippi) despite not having a space in the application. Australian customs really hassled me about that.

Re: People with names that break computers

#236

Earlier quoted context omitted.

Websites that insist on forcing me to enter a first and last name always get abuse in the latter. What I call myself on websites is my business, not yours.

If at any point in the process they need to bill you for something, they have to ask for your first and last name because that's exactly what the credit card companies require. So there are use cases. Personally, I don't see why any company is asking for a name if they aren't billing you for something or they aren't a social network.

> they have to ask for your first and last name because that's exactly what the credit card companies require

No they don't, they ask for a single field, name on card which is a single string containing everything on the card.

Re: People with names that break computers

#237

I have a close friend who lives in rural Ireland. That's not in a town, but on a small farm in a general area of about 15-20 other small farms. His address is just the name of the general area and the county. The Irish postal system is clever enough to know that the person with this name, in that general area lives in that house. In fact, he probably still isn't even really classified by his name, rather as the husba…

Where I lived (and now work) the streets had no names. Well, actually the electric company had names for them, but didn't really tell anyone. For years, I had stuff sent to "House 311 behind the school". FedEx refused to ship to us unless its a school or business and you had to drive 90+ miles to pick it up. UPS delivered fine. It did take a bit to train new drivers. USPS did not do any home delivery (PO box or nothi…

https://www.youtube.com/watch?v=GzZWSrr5wFI

On a serious note, where was this?

Re: People with names that break computers

#238
post #14

Earlier quoted context omitted.

In the context of acoustics, "ts" almost always means time-step (inverse of frequency). But I don't have the faintest idea of how it would collide with the username string :|

Guessing they're scanning for parameters in a JSON object by doing something like ts = parseInt(jsonstr.indexOf("ts")+2); I wish I didn't come to this guess by seeing it in real code so many times… T_T

One of the reasons I've always been leery of regex. Especially since everyone I've seen using them tends to blindly copy an example from elsewhere and then bats at it until the test case passes.

Re: People with names that break computers

#239

It doesn't even have to be an "edge case", as stated in the article. My first name has a single accented vowel and breaks tons of online forms. What annoys me is not so much having to re-enter my name with the unaccented version of the vowel, it's when the form throws up an error message saying "Enter a Valid Name" [or suchlike]. I find that insulting. At least make your error text put the blame where it belongs: "So…

I think the problem is that coders who realize that their form can't handle many common characters don't make a specialized error message, they just fix the problem. Basic Latin Unicode support isn't hard to do. If you've written code that can't handle it, you very likely aren't aware that you've made a mistake.

Re: People with names that break computers

#240
post #237

Earlier quoted context omitted.

Where I lived (and now work) the streets had no names. Well, actually the electric company had names for them, but didn't really tell anyone. For years, I had stuff sent to "House 311 behind the school". FedEx refused to ship to us unless its a school or business and you had to drive 90+ miles to pick it up. UPS delivered fine. It did take a bit to train new drivers. USPS did not do any home delivery (PO box or nothi…

https://www.youtube.com/watch?v=GzZWSrr5wFI On a serious note, where was this?

rural North Dakota on a reservation
Post reply on HN