canpolat@programming.dev to Programming@programming.devEnglish · edit-28 months agoFalsehoods Programmers Believe About Nameswww.kalzumeus.comexternal-linkmessage-square13fedilinkarrow-up168arrow-down12
arrow-up166arrow-down1external-linkFalsehoods Programmers Believe About Nameswww.kalzumeus.comcanpolat@programming.dev to Programming@programming.devEnglish · edit-28 months agomessage-square13fedilink
minus-squareCorngood@lemmy.mllinkfedilinkarrow-up28·8 months agoIt’s all reasonable stuff except maybe: People’s names are all mapped in Unicode code points. I don’t see how you could avoid this this in software that needs to ask the user their name. I think it’s definitely a good idea to avoid using names wherever possible, and definitely don’t try to do anything clever with them. When necessary, software can just be clear: “in unicode, what should I call you?” "in unicode, who is making this credit card transaction?’
minus-squareSemi-Hemi-Demigod@kbin.sociallinkfedilinkarrow-up29arrow-down1·8 months agoUsers: “I don’t speak unicode”
minus-squareCorngood@lemmy.mllinkfedilinkarrow-up12·8 months agoHaha, yeah, I didn’t mean literally telling them that. More like giving them a text field that can only contain unicode characters, which is pretty standard.
minus-squarepivot_root@lemmy.worldlinkfedilinkarrow-up8·8 months agoProgrammers: “\u{004A}\u{006F}\u{0068}\u{006E}”
minus-squareSpzi@lemm.eelinkfedilinkEnglisharrow-up7·8 months agoYou can do that when you control the frontend UI. Then, you can set up the input field for their name, applying input validation. But I would rather not rely on telling the user, in hopes they understand and comply. If they have ways to do it wrong, they will.
It’s all reasonable stuff except maybe:
I don’t see how you could avoid this this in software that needs to ask the user their name.
I think it’s definitely a good idea to avoid using names wherever possible, and definitely don’t try to do anything clever with them.
When necessary, software can just be clear:
Users: “I don’t speak unicode”
Haha, yeah, I didn’t mean literally telling them that. More like giving them a text field that can only contain unicode characters, which is pretty standard.
Programmers: “\u{004A}\u{006F}\u{0068}\u{006E}”
You can do that when you control the frontend UI. Then, you can set up the input field for their name, applying input validation.
But I would rather not rely on telling the user, in hopes they understand and comply. If they have ways to do it wrong, they will.