you are viewing a single comment's thread
view the rest of the comments
[–] 26 points 1 year ago (11 children)

the fact that these are strings instead of an object that is broken up by country code, area code, and number makes me irrationally angry.

  • source
  • hideshow 11 child comments
  • [–] 20 points 1 year ago (3 children)

    i think you think that telephone numbers are well-structured. they are not. they are messy. they do not fit a certain schematic.

    I recommend also the following topic: "people have names". https://www.kalzumeus.com/2010/06/17/falsehoods-programmers-believe-about-names/

    Names do not in general fit into the schematic "first name, last name"

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 1 year ago* (last edited 1 year ago) (2 children)

    Is there not a "falsehoods programmers think about phone numbers" yet?

    Edit: And once again, I'm still confused about some of these. Do we need to expand unicode for names? It's supposed to be universal. WTF is up with 40?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 1 year ago* (1 child)

    WTF is up with 40?

    People have names.

    I suppose that a counterexample to this might be Tibetan children, who get named at puberty, IIRC. Before that, they have no names. They are just referred to as "child" or "somebody's child".

    People’s names are all mapped in Unicode code points.

    I suppose a counterexample to that might be cultures which do not use script in general. Then, obviously, there's no Unicode characters for these non-existant glyphs.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 1 year ago

    Ah, so it dovetails with the whole "children get a name reasonably fast" thing. I was interpreting that as "ever, in a natural lifespan". My bad, haha.

    I suppose a counterexample to that might be cultures which do not use script in general. Then, obviously, there’s no Unicode characters for these non-existant glyphs.

    True, but there's little risk of a name being entered into a form without some kind of transcription.

  • source
  • parent