this post was submitted on 08 Mar 2026
27 points (90.9% liked)

Lobste.rs

343 readers
68 users here now

RSS Feed of lobste.rs

Source of the RSS Bot

founded 1 year ago
MODERATORS
top 11 comments
sorted by: hot top controversial new old
[–] cazssiew@lemmy.world 3 points 1 hour ago

This is completely broken anywhere outside the US. I'm thinking the author knows this, but if he acknowledges it, his entire point about it being easy to implement goes away. For it to work internationally, you'd have to first ask for the country, then individually point each answer to a different postal code database, down to the smallest nation, supposing that such a database is even publicly available for every nation on earth.

[–] ikidd@lemmy.world 1 points 6 hours ago (1 children)
[–] Ephera@lemmy.ml 2 points 2 hours ago

Postal codes...

[–] Xavienth@lemmygrad.ml 4 points 16 hours ago

I tried their demo. It didn't let me input my postal code because it's 7 characters. It would have been even worse if the field only accepted numbers like the author implies it should. I obviously didn't expect it to auto fill, but the fact that I can't even input my postal code at all is the same annoyance I've had with almost every American service. The fact that there's even a field for "country" in the demo is a joke. If you're going to make your form for the US only, why bother including a country field? If it is international, country goes first, I don't know why that's even a concession at the end of the article, it should be the foundation.

Also the suggestion to auto fill the country based on IP has problems but I would go out on a limb and say most people are not travelling or using a VPN so I'll let this slide.

[–] toofpic@lemmy.world 8 points 20 hours ago (3 children)

I kind of agree, but Country, really? They know most services can be used outside the US? A great way would be to choose a country (okay, if the majority of users are from the US it can be preselected), then that country's postal code list is used to fill in the rest of the fields (and as a fallback, you can enter unlosted code and address).
I still remember some asshole American services telling me that "a postal code consists of 5 numbers" (I'm from Europe, and it's 6 everywhere) - this is the result of going crazy on assumptions. Nice and convenient standardized systems can be built, but if you make one for an address on the planet, then start from Country and down, not from "I watched Beverly Hills 90210, this seems to work for me"

[–] SchwertImStein@lemmy.dbzer0.com 1 points 46 minutes ago

it's not 6 everywhere in Europe

[–] Ephera@lemmy.ml 2 points 2 hours ago

Yeah, which is also the explanation why this isn't implementented nearly as often as the author would like.
The folks implementing these address input components probably puke already from just needing different sets of input fields and formats for different countries. If they have to call different APIs with different input and output formats for every country, that increases complexity quite a bit.

[–] thedeadwalking4242@lemmy.world 1 points 19 hours ago (1 children)

They talk about that in the blog

[–] Alexstarfire@lemmy.world 3 points 12 hours ago

This blog assumes a lot. It's very US centric.

[–] caseyweederman@lemmy.ca 3 points 19 hours ago (1 children)