▲ | Muromec 4 hours ago | ||||||||||||||||
But it does affect my life in a way you refuse to understand. That's the problem -- there isn't a true canonical representation of a name (any name really) that fits all practical purposes. Storing a bag of bytes to display back to user is the easiest of practical purposes and suggesting the practice that solve that is worse than rejecting Stępień, it's refusal to understand complexities, that leads to eventually doing the wrong thing and failing your user without even telling them. >It is your unique identifier, do not munge it. It's not a good identifier either. Nobody uses names as identifiers at any scale that matters for computers. You can't assume they don't have collisions, you can't tell whether two bags of bytes identify the same person or two different, they aren't even immutable and sometimes are accidentally mutable. | |||||||||||||||||
▲ | soco 4 hours ago | parent | next [-] | ||||||||||||||||
Then where is the problem? If the support can read Polish they will pronounce your name properly, if they're from India they will mess it up, why should we have different expectations? Nobody will identify you by name anyway, they will ask how to call you (chatbots do this already) and then use for proper identification all kind of ids and pins and whatnot. So we are talking here about a complexity that nobody actually needs, not even you. So let the name be saved and displayed in the nice native way, and you as programmer make sure you don't go Bobby Tables with the strings. | |||||||||||||||||
| |||||||||||||||||
▲ | hobs an hour ago | parent | prev [-] | ||||||||||||||||
There's no such thing as a data structure that fits "all practical purposes" that is correct. There's no wrong thing - this is the best representation we can make given the system of record for the person's name. They are definitely mutable, context dependent, and effectively data you cannot make assumptions about because of all those things. If you want to do more than that you need a highly constrained use case, and its going to fail for "all practical purposes". |