• fibojoly@sh.itjust.works
    link
    fedilink
    arrow-up
    27
    ·
    1 month ago

    I’m amazed at developers who don’t grasp that you don’t need to have absolutely everything under the sun in a human readable file format. This is such a textbook case…

    • chaospatterns@lemmy.world
      link
      fedilink
      English
      arrow-up
      11
      ·
      1 month ago

      Yeah this isn’t even human readable even when it’s in YAML. What am I going to do? Read the floats and understand that the person looked left?

      • squaresinger@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        1 month ago

        It’s human-readable enough for debugging. You might not be able to read whether a person look left, but you can read which field is null or missing or wildly out of range. You can also read if a value is duplicated when it shouldn’t be.

        Human-readable is primarily about the structure and less about the data being human readable.

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      10
      ·
      1 month ago

      Even if you want it to be human readable, you don’t need to include the name into every field and use balanced separators.

      Any CSV variant would be an improvement already.

      • fibojoly@sh.itjust.works
        link
        fedilink
        arrow-up
        4
        ·
        1 month ago

        Even using C#'s decimal type (128bit) would be an improvement! I count 22 characters per numbers here. So a minimum of 176bit.

    • FuckBigTech347@lemmygrad.ml
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      1 month ago

      Exactly. All modern CPUs are so standardized that there is little reason to store all the data in ASCII text. It’s so much faster and less complicated to just keep the raw binary on disk.