• Amon@lemmy.world
    link
    fedilink
    arrow-up
    21
    ·
    edit-2
    21 hours ago

    All my homies hate ISO

    Said no-one ever?

    EDIT: thanks for informing me i now retract my position

    • namingthingsiseasy@programming.dev
      link
      fedilink
      arrow-up
      32
      ·
      21 hours ago

      Nah, ISO is a shit organization. The biggest issue is that all of their “standards” are blocked behind paywalls and can’t be shared. This creates problems for open source projects that want to implement it because it inherently limits how many people are actually able to look at the standard. Compare to RFC, which always has been free. And not only that, it also has most of the standards that the internet is built upon (like HTTP and TCP, just to name a few).

      Besides that, they happily looked away when members were openly taking bribes from Microsoft during the standardization of OOXML.

      In any case, ISO-8601 is a garbage standard. P1Y is a valid ISO-8601 string. Good luck figuring out what that means. Here’s a more comprehensive page demonstrating just how stupid ISO-8601 is: https://github.com/IJMacD/rfc3339-iso8601

        • derpgon@programming.dev
          link
          fedilink
          arrow-up
          3
          ·
          7 hours ago

          Sure, it means something, and the meaning is not stupid. But since it is the same standard, it should be possible to be used to at least somehow represent the same data. Which it doesn’t.

          • groet@infosec.pub
            link
            fedilink
            arrow-up
            1
            ·
            7 hours ago

            I think it is reasonable to say: “for all representation of times (points in time, intervals and sets of points or intervals etc) we follow the same standard”.

            The alternative would be using one standard for points in time, another for intervals, another for time differences, another for changes to a timezone, another for …

            • lad@programming.dev
              link
              fedilink
              English
              arrow-up
              2
              ·
              7 hours ago

              The alternative would be

              More reasonable, if you ask me. At least I came to value modularity in programming, maybe with standards it doesn’t work as good, but I don’t see why

              • groet@infosec.pub
                link
                fedilink
                arrow-up
                1
                ·
                3 hours ago

                Standards are used to increase interoperability between systems. The more different standards a single system needs the harder it is to interface with other systems. If you have to define a list of 50 standard you use, chances are the other system uses a different standard for at least one of them. Much easier if you rely on only a handful instead

                • lad@programming.dev
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  ·
                  2 hours ago

                  Makes sense. But then we’re getting the standard that tries to define everything