Live data from Hacker News

Put the zip code first

zipcodefirst.com

241–250 of 330 posts

Re: Put the zip code first

#241
Im reading through all these comments and it amazes me how the perfect is the enemy of the good, for many computer people.

Ofc there are edge cases. So since there exist a handful of edge cases where a zip code maps to two states, or the more frequent (but irrelevant in the US) case of two or more city names per zip code, we should make everyone suffer?

Ofc if you are making a web form you should ask for the zip code first, and auto complete state and city. Let the user edit them if they don’t like what you chose. Or do as some have suggested here and present the official USPS data as a drop down of 2 states or 2-3 cities; thats way better than having to type all of it.

And I curse everyone who thinks it’s a good idea to break zip code or phone number or OTP into multiple fields, or if you’re too lazy to set the input type to number.

Re: Put the zip code first

#242
post #69

Earlier quoted context omitted.

This 1000 times. I’ve tried implementing what OP has mentioned, and quickly learned it isn’t possible. A city can also exist in multiple zip codes. And there can be multiple cities with the same name in the same state. So, to be safe, you have to enter city, state, and zip.

I don’t understand either of these arguments. They both appear to reinforce the point made in the article. At worst a zip code contains multiple cities? Voila the city box becomes a dropdown. It’s 2025. JavaScript.

I just placed a delivery order from home depot and this is exactly how they handled it. I put in my zip, they gave me a drop down of the cities that zip covers (there are like 5 of them, incredibly) and I was on my way.

Re: Put the zip code first

#243

Earlier quoted context omitted.

As has been pointed out in many other comments implicitly and explicitly, the purpose of a set of address fields in an HTML form is not always to come up with a USPS delivery address.

Does that mean you shouldn't choose sane defaults or...?

Many other comments here have outlined the problems with what TFA appears to consider "sane defaults".

But sure, if you can do it right (e.g. "Put the country first"), then by all means do so!

Re: Put the zip code first

#246

US-centric. I typed a Mexico postal code (it’s five digits) and got routed to somewhere in Maine. So - yeah the whole “I can tell you’re in the US just by the zip code” premise is entirely flawed.

the first words on the site - this is for American sites...

Re: Put the zip code first

#248
All the extra steps serve as some type of verification + data collection.

The devs know how to make the experience better, but they get paid to implement some mbas mining scheme.

The future is ok but mostly sucks.

Re: Put the zip code first

#249

US-centric. I typed a Mexico postal code (it’s five digits) and got routed to somewhere in Maine. So - yeah the whole “I can tell you’re in the US just by the zip code” premise is entirely flawed.

Yes, it is US-centric. You all act like that many commercial websites are just like automatically doing international business. I am not even allowed to do business out of my state. I don't even need that filled in. You can see my website anywhere, but you can't be my client unless you're in my state. So I don't care.

Any company able to do business in multiple jurisdictions, well, that's just the kind of extra thing they can handle.

For an enormous amount of sites and for an enormous amount of users this is an improvement and the general reaction here is nitpicking and this self-evident charge that it's US-centric. So what. The principle would apply in most places.

In Costa Rica, there are no addresses but there are (now) post codes. You would have to take that into account to do business there. If this doesn't apply to you then it doesn't apply to you.

It's not like the internal US market is small. This solves a problem for a lot of people in a lot of cases.

Re: Put the zip code first

#250
post #115

Falsehoods US programmers believe about addresses: there are no other countries than the US of A, and if there are, they don’t really matter. This person bought a whole domain for something that doesn’t work for 90% of the world, claiming it does, never even testing their assumption. Great job!

Yeah, this is 100% an instant classic in the lies programmers believe series.

How long have we had browser auto complete for addresses? A long time, I assume it's devs like this one who just can't be bothered to support it and have to pretend their flawed approach is somehow faster than literal auto complete.

Post reply on HN