The commercial domain name system is a perfect example of the type of artificial scarcity capitalism creates and exploits.
Domain names are tiny little rows in a database. They cost next-to-nothing to set up and maintain. There’s absolutely no reason why they couldn’t be a public good, paid for from the public purse.
And yet you pay (at times extortionate) amounts for them… why?
Because capitalism.
Isn't this a bit simplistic? Domain names are a limited resource, so there has to be some way to regulate who can use which domains. What alternative method of regulation would you propose and why it's better?
You can do this trick for type-checking emptiness of string literals
https://www.typescriptlang.org/play/?jsx=0#code/C4TwDgpgBAsg...