6 ms·
Addresses is one of those categories for which people should regularly read the "falsehoods programmers believe about X" list. Here's one: https://www.mjt.me.uk
by protoster 8y ago
Addresses is one of those categories for which people should regularly read the "falsehoods programmers believe about X" list. Here's one: https://www.mjt.me.uk/posts/falsehoods-programmers-believe-about-addresses/ https://www.mjt.me.uk/posts/falsehoods-programmers-believe-a...
- petre 8y agoHmm, we have name (enter as many as you like, Li Pong Tai if you wish), address, country (select, excludes Kosovo and Western Sahara and other territories pretending to be countries), phone and email fields. Email is verified with a code. Forcing a certain format very rigidly is bad practice. Like first name, last name or state, city. What if the customer is Korean or lives on a ranch in the countryside or is a ranger and uses their work address? Or worse, lives in the Medina in Morocco.
- wstuartcl 8y agoIn the US there is also a trend for certain companies to use an address "fixer" or "reformater" API to automatically wither check and or fix an entered address. So bad. When I moved into a newly built apartment building a few years ago there were more than a few sites that just would not accept that the actual address was real and valid. ick.
- deleted 8y ago[deleted]
- talaketu 8y agoAddresses are names for locations.