• SlopppyEngineer@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    4 months ago

    “We call her Carrie, because of the carriage return.”

    You can also try to give the child NULL as middle name for additional fun.

  • Bookmeat@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    4 months ago

    Not legal in Canada. Your legal name must use Latin characters only. This is a sore point for indigenous people.

    • MonkeMischief@lemmy.today
      link
      fedilink
      arrow-up
      1
      ·
      4 months ago

      Which is both entirely understandable, and also tragic because Canada’s indigenous written characters are so cool. :D

      But also, it’s gotta be neat having a name among your people, that “the state” has nothing to do with…

  • AnyOldName3@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    4 months ago

    Once I was tasked with doing QA testing for an app which was planned to initially go live in the states of Georgia and Tenessee. One of the required fields was the user’s legal name. I therefore looked up the laws on baby names in those two states.

    Georgia has simple rules where a child’s forename must be a sequence of the 26 regular Latin letters.

    Tenessee seemed to only require that a child’s name was writable under some writing system, which would imply any unicode code point is permissible.

    At the time, I logged a bug that a hypothetical user born in Tenessee with a name consisting of a single emoji couldn’t enter their legal name. I reckon it would also be legal to call a Tenessee baby 'John '.

    • dan@upvote.au
      link
      fedilink
      arrow-up
      1
      ·
      4 months ago

      Sounds like you did a thorough job as a QA tester. As a software engineer, I love to see it.

      • AnyOldName3@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        4 months ago

        By the time the app was due to go live, we’d only reported bugs with the signup and login flows. This was misinterpreted as there only being issues with the signup and login flows, and the app launched on time. In reality, it was impossible to get past the login screen.

        • dan@upvote.au
          link
          fedilink
          arrow-up
          1
          ·
          4 months ago

          And then let me guess… Of course the QA testers get the blame, when in reality it’s either management or marketing that wanted to pushe the app out.

          • AnyOldName3@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            4 months ago

            Blaming us would be too close to root-cause analysis for them even to consider. We weren’t normally QA testers, but they’d left it until too late to hire internal QA, so roped in the developers (us) from a SaaS vendor their app replied on as emergency QA.

  • ano_ba_to@sopuli.xyz
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    4 months ago

    It’s impossible to represent that on paper. It could be misrepresented as a specific number of spaces. Depending on the position on the paper, it may also be hard to tell if the carriage return comes with the line feed. Unless you want the document to be in ASCII or EBCDIC hex, it’s like writing an ambiguous math problem where the answer is different depending on how you were taught about the order of operations. Don’t do this to your kid, Abcde.

  • lime!@feddit.nu
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    4 months ago

    asking questions like this is how i found out that one of the allowed characters in names in my country is ÿ, which is fine in Latin-1 but in 7-bit ASCII is DEL.

    • Whelks_chance@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      4 months ago

      This sounds like it would create a whole list of fun and irritating edge conditions for some poor bugger to debug. Love it.

  • takeheart@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    4 months ago

    Na, names are about pronunciation (how you call someone). Written letters are an approximation of that. You can’t pronounce a newline, so there’s that.

  • Atomic@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    4 months ago

    Not legal in Sweden. Our “IRS” must also accept the name and deem it legal.

    I for one like this. As it stops some very stupid people to name their children some very stupid names. Such as “Adolf Hitler”.

    And yes. Someone did try to name their child this and they were appropriately stoped from doing it.

  • There are a frightening number of systems that don’t allow “-”, which isn’t even an edge case. A lot of people - mostly women - hyphenate their last names on marriage, rather than throw their old name away. My wife did. She legally changed her name when she came of age, and when we met and married years later she said, “I paid for money for my name; I’m not letting it go.” (Note: I wasn’t pressuring her to take my name.) So she hyphenated it, and has come to regret the decision. She says she should have switched, or not, but the hyphen causes problems everywhere. It’s not a legal character in a lot of systems, including some government systems.

    • Affidavit@lemm.ee
      link
      fedilink
      arrow-up
      1
      ·
      4 months ago

      It boggles my mind how so many websites and platforms incorrectly say my e-mail address is ‘invalid’ because it has an apostrophe in it.

      No. It is NOT invalid. I have been receiving e-mails for years. You just have a shitty developer.

      • rumba@lemmy.zip
        link
        fedilink
        English
        arrow-up
        1
        ·
        4 months ago

        worst thing is, the regex to check email has been available for decades and it’s fine with apostrophies

        • lad@programming.dev
          link
          fedilink
          English
          arrow-up
          1
          ·
          4 months ago

          There are many regexes that validate email, and they usually aren’t compliant with the RFC, there are some details in the very old answer on SO. So, better not validate and just send a confirmation, than restrict and lock people out, imo

          • rumba@lemmy.zip
            link
            fedilink
            English
            arrow-up
            0
            ·
            4 months ago

            The article you just mentioned in the comments includes both a completely reasonable and viable regex and binary and library alternatives that are in most languages.

            • lad@programming.dev
              link
              fedilink
              English
              arrow-up
              1
              ·
              4 months ago

              Reasonable and viable ≠ RFC compliant

              This quote summarises my views:

              There is some danger that common usage and widespread sloppy coding will establish a de facto standard for e-mail addresses that is more restrictive than the recorded formal standard.

        • Ephera@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          4 months ago

          Well, and remember: If in doubt, send them an e-mail. You probably want to do that anyways to ensure they have access to that mailbox.

          You can try to use a regex as a basic sanity check, so they’ve not accidentally typed a completely different info into there, but the e-mail standard allows so many wild mail addresses, that your basic sanity check might as well be whether they’ve typed an @ into there.

            • Ephera@lemmy.ml
              link
              fedilink
              arrow-up
              1
              ·
              4 months ago

              Yeah, I’m just saying that the benefit of using such a regex isn’t massive (unless you’re building a service which can’t send a mail).

              a@b is a syntactically correct e-mail address. Most combinations of letters, an @-symbol and more letters will be syntactically correct, which is what most typos will look like. The regex will only catch fringe cases, such as a user accidentally hitting the spacebar.

              And then, personally, I don’t feel like it’s worth pulling in one of those massive regexes (+ possibly a regex library) for most use-cases.