• chaospatterns@lemmy.world
    link
    fedilink
    English
    arrow-up
    13
    ·
    2 天前

    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
      1
      ·
      15 小时前

      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.

      • vivendi@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        edit-2
        14 小时前

        You could also not be an idiot and write a debug script that checks those values or atleast provides an interface

        But I guess they don’t teach that kind of thing in the javascript and python school of dogshit programming

        • squaresinger@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          11 小时前

          Who pissed in your coffee?

          Sure you can write some script to interpret the data, but then you need to write an extra script that you need to run any time you step through the code, or whenever you want to look at the data when it’s stored or transferred.

          But I guess you have never worked on an actually big project, so how would you know?

          I guess you aren’t entirely wrong here. If nobody other than you ever uses your program and nobody other than you ever looks at the code, readability really doesn’t matter and thus you can microoptimize everything into illegibility. But don’t extrapolate from your hobby coding to actual projectes.