• BlueKey
      link
      fedilink
      203 months ago

      Is there space left on the hill? I want to join you.

      • @bobo@lemmy.ml
        link
        fedilink
        73 months ago

        Commas (at least the trailing ones), comments, and nothing else. JSON with type inference seems like an incredibly bad idea…

      • @3abas@lemmy.world
        link
        fedilink
        43 months ago

        Because yaml is not a programming language, and debugging why your whatever you’re configuring isn’t working correctly can be a nightmare. It doesn’t tell you you missed an indent on a block, it just assumes it should be there and changes the meaning.

        Braces are visually clear.

        • @softwarist@programming.dev
          link
          fedilink
          English
          13 months ago

          I think YAML has its fair share of design flaws, but I don’t think significant indentation is one of them. It may not be a programming language (which may be debatable), but there are plenty that use syntactic whitespace.

          • @3abas@lemmy.world
            link
            fedilink
            13 months ago

            It’s not debatable… You linked to a programming language that uses yaml syntax, that didn’t make yaml itself a programming language… It’s not.

            And I know there are plenty that use syntactic whitespace, and I hate that about all of them. Literally my only real frustration with python is due to the time of my life wasted debugging perfectly fine logic that fails because a few lines had incorrect indentation.

      • @Shanmugha@lemmy.world
        link
        fedilink
        2
        edit-2
        3 months ago

        Because I am not counting white space when I read. Or should we just write machine code/assembler/pick something straight away?

          • @Shanmugha@lemmy.world
            link
            fedilink
            2
            edit-2
            3 months ago

            Human and machine read differently. If you ignore that (in case with indentation), then why bother with writing human-friendly form of code, when what is going to be really executed is something else?

            • @softwarist@programming.dev
              link
              fedilink
              English
              13 months ago

              If anything, that sounds like an argument in favor of significant indentation, not against it. Humans and machines read differently, yes, which is why we tend to add whitespace and indentation to code even for programming languages where it’s not significant. We do that expressly because it makes the code more human-friendly, so it’s quite the opposite of ignoring their differences.

              • @Shanmugha@lemmy.world
                link
                fedilink
                13 months ago

                No, it is an argument against it. We indent code so that it is more comfortable to read it, not in order to make it easier to understand