4 ms·
Do you have any opinion on what the practices should be with names like yours? Should we somewhere between the view layer and the persistence layer convert to a
by glhaynes 15y ago
Do you have any opinion on what the practices should be with names like yours? Should we somewhere between the view layer and the persistence layer convert to a canonical form? If so, can you provide any links for widely-preferred ways to do so?
About to find myself building some such systems and would prefer to do it right…
- nickzoic 15y ago<rant> Names are just Unicode strings, which you should not fold, spindle or mutilate. Why do you care which bit is the family name, or if this person has a family name, or even if there is such a thing as a family name in their family's culture? Why even try for a canonical form? Even better, make name a _list_ of Unicode strings, so people who have multiple names (Chinese/Western, pre/post marriage, pre/post op) can give you the whole list to search on. If asking for their credit-card details, ask "Name As Printed On This Credit Card" and store that as well so you can bill them. That's really a property of the card, not the person. And then just add a "Informal Name" field so you're not stuck guessing which bit is the informal name, or writing "Dear Roderick Frederick Ronald Arnold William MacArthur McBan" which does sound kind of dorky ... </rant>