TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

<input type=“country” />

56 pointsby jacobrover 7 years ago

14 comments

tyingqover 7 years ago
I have my doubts as to whether a generic solution solves this.<p>The author notes some issues, like using it for place of birth. Now you need a temporal list for &quot;countries that existed in year XYZ&quot;.<p>There are similar issues for shipping. Not everyone ships everywhere. If the list is abstract and unknown to me, how do I whitelist&#x2F;blacklist? Am I supposed to know that Scotland exists in the list or not? What if it&#x27;s for a passport input? Does Scotland have it&#x27;s own passport? How do I deal with Taiwan without pissing off Chinese web site visitors?<p>Tldr: The list depends on context. I&#x27;m skeptical that a centralized list could deal with commonly used contexts.
评论 #15644215 未加载
评论 #15644060 未加载
评论 #15644014 未加载
petepeteover 7 years ago
There was an excellent article[0] in Smashing Magazine several years ago that dealt with some of the complexities of country selectors.<p>For someone who lives in the UK, you never know whether a list will have United Kingdom, Great Britain or England in it (I&#x27;ve come across all three), and similar problems exist for countries that are known by more than one name (eg Netherlands vs Holland).<p>And some sites break sorting by pushing certain countries to the top of the list and breaking sorting completely.<p>There isn&#x27;t a completely right answer, a standardised country selector might work in some (most) circumstances for most people, but what if my list needs Czechoslovakia or Zaïre? Then, a &quot;simple&quot; problem becomes much, much, much more complex.<p>[0] <a href="https:&#x2F;&#x2F;www.smashingmagazine.com&#x2F;2011&#x2F;11&#x2F;redesigning-the-country-selector&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.smashingmagazine.com&#x2F;2011&#x2F;11&#x2F;redesigning-the-cou...</a>
Already__Takenover 7 years ago
Classic simple problem that&#x27;s impossible to solve.<p>The thought that web browsers support could solve this problem speaks volumes about the kind of rate people _think_ software gets updated. You could never trust input=country to be supported much less up to date thus it will always be poly filled by some library. So why the false hope?
评论 #15644039 未加载
Wintamuteover 7 years ago
Stopped reading at &quot;mansplainers&quot;.
评论 #15644289 未加载
评论 #15644166 未加载
评论 #15644151 未加载
评论 #15644159 未加载
评论 #15644092 未加载
snomadover 7 years ago
Nice idea, but she outlined more than enough reasons not to do it. Political (Israel-Palestine, China-Taiwan, Ukraine, etc).<p>In my limited experience with automating international shipping I seem to recall UPS treats Guam, Puerto Rico, and US Virgin islands as countries (and our local CRM treated them as states).<p>There are so many controls that HTML is missing - date pickers, menus, menu flyouts etc.
donatjover 7 years ago
Just do longitude and latitude. Show a map of the earth and let them drop a pin.<p>There is no reasonable way to get the world to agree on a single list. I doubt you could get browser developers to agree on a single list. For example Apple listing Taiwan in Safari could get Apple kicked out of mainland China. There is simply too much politics here to be tenable.
评论 #15644012 未加载
评论 #15644137 未加载
评论 #15644103 未加载
评论 #15644027 未加载
评论 #15644017 未加载
评论 #15644004 未加载
评论 #15644037 未加载
评论 #15644164 未加载
DeusExMachinaover 7 years ago
One paragraph into the article:<p>&gt; while also marvelling at the witless mansplainers<p>Yeah, let’s make every discussion about gender, shall we?<p>How about no?
评论 #15644260 未加载
评论 #15644065 未加载
vlucasover 7 years ago
Good discussion, and it is certainly very nuanced.<p>The trouble of the developer having to create this list themselves is the reason I made <a href="http:&#x2F;&#x2F;devdata.io" rel="nofollow">http:&#x2F;&#x2F;devdata.io</a> - so you could at least have an easy starting point for all this data that is basically just copy&#x2F;paste.
baqover 7 years ago
timezones are a similar topic in the context of managing them, except there&#x27;s less politics involved. i don&#x27;t see how a global solution would look like, but i&#x27;m sure china will want a different list than russia and the US will want a different list from both of them, and that&#x27;s only 3 countries out of 199 or 249 or however many are there at the moment (and then the temporal aspect comes into play.)
评论 #15644091 未加载
rplntover 7 years ago
Regarding the place of birth issue, I have never used the country I was born with when some form asked for birthplace. Always used the present state, i.e. in what country is the place I was born at.<p>Is that not common? Would you expect someone to write down GDR, USSR, or even Constantinople? Or is it again the same issue that people want to use what they like?
评论 #15644561 未加载
darkhornover 7 years ago
There is web component for that <a href="https:&#x2F;&#x2F;www.webcomponents.org&#x2F;element&#x2F;Protoss78&#x2F;country-select" rel="nofollow">https:&#x2F;&#x2F;www.webcomponents.org&#x2F;element&#x2F;Protoss78&#x2F;country-sele...</a>
评论 #15645094 未加载
johanschover 7 years ago
I&#x27;m mostly just impressed that HN allows brackets in the title...
评论 #15644032 未加载
评论 #15644324 未加载
_rolfover 7 years ago
This post looks funny in the Digg RSS reader: <a href="https:&#x2F;&#x2F;i.imgur.com&#x2F;TNASB3p.png" rel="nofollow">https:&#x2F;&#x2F;i.imgur.com&#x2F;TNASB3p.png</a>
jlebrechover 7 years ago
now tie that to a SaaS that helps you manage those countries