3 ms·
Once you start to look at the problem, it becomes really hard. It is not only address and phone number formats. The name alone a very hard. American style is gi
by febeling 17y ago
Once you start to look at the problem, it becomes really hard. It is not only address and phone number formats. The name alone a very hard. American style is given name and family name I guess, and as a German that sounds very convincing. But then you suddenly stumble across a middle initial, whereas in Germany parents give their kids any number of additional forenames, from zero to five or so, not just one for the middle. Then countries like Spain and Iceland traditionally don't have a family name, but surnames derived from the father or the mother, or just the surname from both in a certain order. You have potentially two family-level names then (and potentially the same name twice!). So the person complaining in the blog post probably doesn't know what it means to get these things right, even if you only consider highly developed countries. Even if you only want the name.
Maybe someone should start a library for this problem, and then we all lay back and watch it grow to 50,000 LOC.