News for hackers. Stuff that matters.
Re:Some problems with 'first name' and 'last name' fields in... by benj111 on Saturday August 12, 2023 @02:32PM (#37102933)
So if you're dealing internationally, and names actually matter. You may need to think a bit harder about names.

Although the proposal still doesn't solve all edge cases. And the current edge cases have presumably found a solution, like my girlfriend that has 2 last names, and is from a 'western' country.

My parents address is stupidly long and doesn't fit in to most address boxes, so you also need to allow arbitrarily long addresses.

Oh, and your email validator is wrong too.

Re:Some problems with 'first name' and 'last name' fields in... by sjmulder on Saturday August 12, 2023 @05:17PM (#37104306)
Even bog standard Dutch names are often a problem e.g. “Jan de Wit” being addressed as “Jan de”, “Jan Wit” or sorted under the letter d.
Re:Some problems with 'first name' and 'last name' fields in... by stephenr on Saturday August 12, 2023 @06:05PM (#37104651)
Is the "de" somehow different to a "regular" middle name?
Re:Some problems with 'first name' and 'last name' fields in... by Daimanta on Saturday August 12, 2023 @06:12PM (#37104693)
It's not a "middle name", rather it's an "infix". Some countries/languages have this feature where there is a generic "infix" part of the last/family name. This generic part if fully part of the last name but is so common that it will cause an imbalance in the distribution of names.

To understand this as an English speaker. Imagine people aren't called John Smith, but rather John the Smith and not Bill Boston but Bill of Boston. Now imagine that a large percentage of people had an infix in the name. It would be impractical to order stuff by last name and find a massive index on the letter "o" because all the last names starting with "of" or at "t" starting with "the". To balance this out, parts that would translate to words like "from", "the", "of", "to" or "on" would be considered an index. Part of the last name, but not considered part of the name index. John the Smith would be found at the letter "S" usually structured as "Smith, John the".

Re:Some problems with 'first name' and 'last name' fields in... by stephenr on Saturday August 12, 2023 @06:19PM (#37104737)
Ah ok. So the issue is not so much how to store it, but how to sort it.

It's the iTunes "The ..." problem.

Thanks for clarifying.

Re:Some problems with 'first name' and 'last name' fields in... by nomdep on Saturday August 12, 2023 @08:44PM (#37105526)
That sound like is the user’s fault: if their name is “Bill of Boston”, then their surname is “of Boston”… and if they prefer to be called “Mr. Boston” or similar, then they should omit the “the” when filling a form
Re:Some problems with 'first name' and 'last name' fields in... by Hasnep on Saturday August 12, 2023 @10:17PM (#37106032)
If someone's family name is O'Neill and their name gets sorted to the top of the O section because if the apostrophe does that make it their fault? If they prefer to be sorted correctly they should omit the apostrophe from their name?
Re:Some problems with 'first name' and 'last name' fields in... by Quekid5 on Saturday August 12, 2023 @06:26PM (#37104775)
Think "da Vinci". It's not exactly the same, but similar enough.
Re:Some problems with 'first name' and 'last name' fields in... by ssss11 on Saturday August 12, 2023 @06:08PM (#37104661)
It’s part of the last name.
Re:Some problems with 'first name' and 'last name' fields in... by hunter2_ on Saturday August 12, 2023 @07:53PM (#37105262)
Speaking of email validation, recently I've come across email inputs that reject addresses that would definitely match even the most restrictive pattern you can imagine (Latin letters and Arabic numerals @gmail.com) but which I created by mashing my keyboard or just made up using my imagination and extremely common (in the USA) names. For example, in the captive portal for Starbucks WiFi, it rejects things like "iebfisldndu38256" or "jennsmith122499" suffixed with "@gmail.com".

Now, I'll admit: it actually did thwart my attempt at not providing my actual email address, for a good several attempts. I had to increase my creativity to a level I truly didn't anticipate, before finding something it accepted. And I definitely had enough randomness that it wasn't just disguising an "already exists" error with an "invalid address" error for privacy purposes, I am certain.

What in the world kind of validation is this? Do people really end up resorting to entering their actual email address often enough to make this at all useful?

Re:Some problems with 'first name' and 'last name' fields in... by constantly on Saturday August 12, 2023 @08:45PM (#37105532)
This isn’t about validation. They check to see if it is a real email address.
Re:Some problems with 'first name' and 'last name' fields in... by dbcurtis on Saturday August 12, 2023 @08:59PM (#37105609)
which is what mailinator is for
Re:Some problems with 'first name' and 'last name' fields in... by hunter2_ on Saturday August 12, 2023 @10:31PM (#37106116)
Ah, interesting. I wonder why everyone doesn't do that instead of poor attempts at validation.