56 points · by jacobr · 9y ago · 70 comments
The author notes some issues, like using it for place of birth. Now you need a temporal list for "countries that existed in year XYZ".
There are similar issues for shipping. Not everyone ships everywhere. If the list is abstract and unknown to me, how do I whitelist/blacklist? Am I supposed to know that Scotland exists in the list or not? What if it's for a passport input? Does Scotland have it's own passport? How do I deal with Taiwan without pissing off Chinese web site visitors?
Tldr: The list depends on context. I'm skeptical that a centralized list could deal with commonly used contexts.
TWN, the ISO country code for Republic of China, listed as "Taiwan, Province of China" in ISO 3166-1
This means Google would be determining whether Taiwan is an independent country or not, making either China, or more probably Taiwan unhappy. Something besides the browser would need to determine what your list of countries is, like the site itself... but a solution like that is much less elegant. Chrome having regional behavior also just sounds like more mess for devs. Some sites will deliberately want to pick sides, and should be able to.
Geographic data will have to come from somewhere, to add countries to this list that "don't exist" in whatever the built-in list of country options is.
The UK and the Netherlands are both (according to ISO 3166-2 [0]) countries which contain other countries.
For someone who lives in the UK, you never know whether a list will have United Kingdom, Great Britain or England in it (I've come across all three), and similar problems exist for countries that are known by more than one name (eg Netherlands vs Holland).
And some sites break sorting by pushing certain countries to the top of the list and breaking sorting completely.
There isn'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 "simple" problem becomes much, much, much more complex.
[0] https://www.smashingmagazine.com/2011/11/redesigning-the-cou...
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?
> maybe I’m just fed up with dudes explaining basic shit to me every time I tweet.
Frankly I think she was in the wrong in this occasion. She offered an idea which has a number of obvious flaws then gets confrontational when people offer counterarguments (ok the terseness tweets don't help but that's a platform problem due to its limited character count).
However I say the above without knowing any past history of abuse she might have had on Twitter.
Sorry to say, but everyone on the internet loves correcting each other and taking the most uncharitable interpretation of each other's posts.
Look no further than HN.
That they use "she" instead of "he" is actually a credit to the replying users insofar that they actually tried to get the gender correct before they launched into the usual assumption that everyone else on the internet is an idiot.
Do you also expect people to overlook a quip about gun control laws while explaining how monads work in Haskell, or is that conversation off the table because you embedded it inside another topic?
The comment doesn’t add to the discussion about whether a country field would be useful or how it could be implemented at all.
But anyway did you read the twitter thread? The writer proposed standardizing a common function so everyone wouldn’t have to roll their own.
A number of guys responded with ‘here’s how to roll your own’ as if she wasn’t intelligent enough to do that herself (and completely missing the point of the tweet).
Do you have a better word for that behavior?
It wasn’t an offhand quip like your gun control example, it directly related to the tweet she was talking about.
And yes, I would think most people could read an article without freaking out that the two words ‘gun control’ were in there if they were off topic.
It seems sad to me that seeing one word in an article is enough to derail the entire conversation because some people don’t like it. It’s not like it was a call to violence or something like that.
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).
There are so many controls that HTML is missing - date pickers, menus, menu flyouts etc.
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.
Well, don't forget an altitude combo, since apartments exist :)
This is a great idea
In the EU, for example, I'd bet that everyone above the age of 12 could find their own country on a map
> while also marvelling at the witless mansplainers
Yeah, let’s make every discussion about gender, shall we?
How about no?
The trouble of the developer having to create this list themselves is the reason I made http://devdata.io - so you could at least have an easy starting point for all this data that is basically just copy/paste.
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?
There are 47 lists of countries in French (that's just an example, I guess English and Spanish have as many of those) in the project that provides them [0], including half a dozen or so just for different regions of France.
As far as I can see, almost of them are exactly identical except for the Canadian one (which has "Saint-Vincent-et-les Grenadines" instead of "Saint-Vincent-et-les-Grenadines" among other things).
For English, en_US and en_UK have differences as meaningful as "Wallis and Futuna" vs. "Wallis & Futuna". Arabic has 28 different versions, all strictly identical.
English, French, Spanish and Arabic "version" alone make up 33% of all content in the repo. What purpose does this serve? Who maintains these largely meaningless lists? Who chooses which languages make it to the list, and which regions do?
I'm as puzzled by that as I am by the choices people make about what countries make it to their list of countries in select lists.