• Ephera
    link
    fedilink
    arrow-up
    3
    ·
    5 months ago

    There can also be circumstances where you have to offer people a natural-looking key for general consumption. You can’t put UUID’s on car plates for example.

    Often times, the first section of the UUID is unique enough. With certain UI design choices, one can encourage users to normally work with that, while having the full UUID available in a detail view or from a copy-button.

    Another strategy I quite like, is to have the UUID as the definitely-always-unique identifier, and then have a separate name, which either the users can enter or we generate something like random adjective+animal.

    But yes, neither of those strategies would work for car plates.

    • lemmyvore@feddit.nl
      link
      fedilink
      English
      arrow-up
      5
      ·
      5 months ago

      Speaking of car plates, the Wikipedia pages for “Vehicle license plates of [insert country here]” are a rabbit hole.

      I was just reading the page for Romania the other day, speaking of uniqueness, and they had this issue apparently where the combinations overall were enough for the whole country but not enough for their capital city, so they had to hack an extra digit into the plates for the capital.

      • Reddfugee42@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        5 months ago

        Seeing as just five alphanumeric symbols gets you over 60 million variations, exactly how the hell did they fuck up that hard

        • lemmyvore@feddit.nl
          link
          fedilink
          English
          arrow-up
          2
          ·
          5 months ago

          60M total but divided among 40 counties makes 1.5M variations per county and the capital city (which is its own county, like Berlin) went over that.

          I looked it up and Bucharest actually has only a 1.7M population so… I think it’s understandable that nobody expected an almost 1:1 person-to-car ratio. Exactly why and how they reached that crazy ratio I have no idea. 😆

          Told you it’s a crazy rabbit hole.