• towerful@programming.dev
    link
    fedilink
    arrow-up
    33
    arrow-down
    3
    ·
    3 months ago

    uses yaml for scripting so it’s clean and readable.

    Eh…

    I guess yaml is fine.
    I hate the significance of whitespace, and the fact that I cannot find any editor that can auto-format. Which are both related, I guess: there is no way to know a yaml document is actually correctly formatted without knowing the intended schema.

    Whereas JSON doesn’t have this ambiguity. But JSON has it’s own drawbacks.

      • towerful@programming.dev
        link
        fedilink
        arrow-up
        3
        ·
        3 months ago

        XML is extremely verbose.
        Again, requires some other tooling to generate (I feel I can point to JavaScript for an example of XML manipulation)

        • JackbyDev@programming.dev
          link
          fedilink
          English
          arrow-up
          2
          ·
          3 months ago

          What’s funny is that if you use attributes a lot then XML can be about the same size as JSON. But people think there are things you should and shouldn’t use attributes for for some reason. The only thing XML has going for it is a really nice schema format, but even today that’s pretty moot. JSON schema and others are pretty well supported.

    • thesmokingman@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      3 months ago

      Are you looking for an editor that can format YAML out-of-the-box or with plugins? In my experience, most editors only support a small number of formats out of the box and extend that functionality with plugins. I have yet to find a solid, production editor without a decent YAML formatter. If you’re using one of the common commercial ones, Red Hat maintains many that work explicitly for Ansible.