Giver of skulls

Verified icon

  • 0 Posts
  • 489 Comments
Joined 102 年前
cake
Cake day: 1923年6月6日

help-circle

  • Country codes are variable. Even the “I’m about to dial another country prefix” (usually + resolves to 00 but that depends on country and carrier) is variable. Phone number lengths are variable. Phone numbers are often written in non-Arabic numerals. Phone numbers can have specific digits in the middle of the number to reroute the call to another carrier.

    You can try to parse phone numbers if you’re writing a specific phone number parsing library, but you’ll need to keep up with the ITU documents, the numbering plans of all countries and satellite providers, and provide support for older standards going back to the 60s. You’ll need to deal with edge cases that your language probably doesn’t even have names for. And most importantly, you’ll have to guess what country the phone number is from based on context clues such as the user’s language or location or locale because phone numbers can be and are reused across borders.

    Phone numbers are worse than time zones. Don’t parse them yourself unless you’re building an international phone interconnect.


  • Kids shouldn’t even be on social media, but at least the corporate ones are covering their ass against lawsuits well enough that they try to moderate content.

    The Fediverse is not a place for kids. Servers catering especially towards kids are DEFINITELY not for kids, because that’s exactly the kind of server I would build if I were a pedo.

    The legal requirements for hosting content for kids are a massive headache that you definitely don’t want to take on as a volunteer. The Fediverse can’t even comply with the GDPR, let alone COPPA and its many international alternatives that actually see enforcement.

    Of course I was a kid on the internet too and very few websites care about lying about your age, but if you do that and see the occasional dick, fetish porn or gore, you’ve only got yourself to blame. Plus, the Fediverse is full of misinformation, lies, and propaganda, from every side of the spectrum. Moderators can only do so much, and some moderators straight-up post misinformation and propaganda themselves. Best not to expose kids to any it that shit until their brains have developed a bit more.