Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Even if a zip code contains multiple cities, each ZIP has one "preferred" locality name and you can default to that. Any of the locality names within a zip code is deliverable for all addresses in that zip code.


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!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: