Live data from Hacker News

Programming language file extensions that match ISO 3166-1 alpha-2 country codes

bruh.ltd

21–30 of 32 posts

Re: Programming language file extensions that match ISO 3166-1 alpha-2 country codes

#21
Back in the day pl was a real problem.

It was and is the conventional extension for the Perl programming language, and Perl was most popular for server side (CGI) scripts for some time.

At same time the idea that webserver and user agent should negotiate the most suitable form of content was all the rage. Little of that survived (compression algorithm) but it used to be used for language as well.

Apache had the convention to use the two letter language code as file extension to encode the language. For example it shipped with collection of error messages in many languages, e.g. 404.html.pl.

Since this conflicted with Perl CGI scripts, Perl got .plx for Perl Executable in Apache and it was proposed as the official Perl extension, but did not stick.

Re: Programming language file extensions that match ISO 3166-1 alpha-2 country codes

#22

.sh is Saint Helena? I always assumed it was just "shell". Are there any file extensions on the list that are technically country codes but nobody actually uses them for the country?

> Are there any file extensions on the list that are technically country codes but nobody actually uses them for the country?

Do we count .su?

Re: Programming language file extensions that match ISO 3166-1 alpha-2 country codes

#26

Earlier quoted context omitted.

https://en.wikipedia.org/wiki/Chagossians > The Chagossians are a mix of African, South Asian, and Malay descent. The French brought some to the Chagos Islands as slaves from Mauritius in 1776. Others arrived as fishermen, farmers, and coconut plantation workers during the 19th century. Under international law, they are the indigenous peoples of the Chagos archipelago, as they are descended from the earliest human se…

How are they descended from the earliest settlers if European ancestry is not listed? I read the same Wiki article but only just picked up on this now. That these non-European groups were slaves and (much later) foreign workers only further cements the status of the Europeans as the original settlers of these islands.

Basically European settlers were a small group of people, who took with them a huge amount of people to work as slaves. Eventually, the small group of Europeans left, but the slaves were still there, turned workers and into the population who lived there.

Eventually though, the UK government came back again, and forcefully removed these people who weren't natives before, but essentially because of forced re-population by colonizers became the natives. Now they want access to the land they were forcefully migrated to, after being removed from it.

Re: Programming language file extensions that match ISO 3166-1 alpha-2 country codes

#27

.sh is Saint Helena? I always assumed it was just "shell". Are there any file extensions on the list that are technically country codes but nobody actually uses them for the country?

> Are there any file extensions on the list that are technically country codes but nobody actually uses them for the country? Do we count .su?

IIRC in the past they’ve shut down some TLDs for now-defunct former countries.

Re: Programming language file extensions that match ISO 3166-1 alpha-2 country codes

#28

.sh is Saint Helena? I always assumed it was just "shell". Are there any file extensions on the list that are technically country codes but nobody actually uses them for the country?

All two letter TLDs are some country's code. .tv (the oldest and longest example of a popular country code used by businesses) is Tuvalu but Tuvalu makes a nice revenue in all the television domains so they are mostly happy with the arrangement. It amuses me how much it bugs some of my friends when I ask what they are watching today on "Twitch dot Tuvalu". A more controversial example is .io for the Chagos Islands wh…

.eu is an exception as it is for the European Union but they don't consider themselves a country.

Re: Programming language file extensions that match ISO 3166-1 alpha-2 country codes

#29

Earlier quoted context omitted.

All two letter TLDs are some country's code. .tv (the oldest and longest example of a popular country code used by businesses) is Tuvalu but Tuvalu makes a nice revenue in all the television domains so they are mostly happy with the arrangement. It amuses me how much it bugs some of my friends when I ask what they are watching today on "Twitch dot Tuvalu". A more controversial example is .io for the Chagos Islands wh…

.eu is an exception as it is for the European Union but they don't consider themselves a country.

While they're commonly called "country codes", being a country is not a requirement for having one.

Consider .uk vs .gb

.aq for Antarctica

.ax is part of Finland (.fi)

and so on.

https://en.wikipedia.org/wiki/Dependent_territory

https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

Re: Programming language file extensions that match ISO 3166-1 alpha-2 country codes

#30

Earlier quoted context omitted.

>Registration restrictions: Second-level registrations prohibited; must have a contact in Paraguay; subdomains have various restrictions; all applications subject to approval by registry >Structure: Registrations are at third level beneath second-level labels https://en.wikipedia.org/wiki/.py

Maybe they do DNS in an Excel sheet?

Maybe they just want to use their country tld for things specific to their country instead of letting some shmucks scoop all the domains for useless junk?
Post reply on HN