• towerful@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    22 days 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.

    • kevincox@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      22 days ago

      YAML is fine as a configuration language and ok data input language.

      YAML is absolutely cursed as a programming language. As in Ansible has created a really shitty programming language inside of YAML. Should be burned with fire.

    • doeknius_gloek@discuss.tchncs.de
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      22 days ago

      I kinda like YAML for simple configuration files, but the YAML spec is borderline insane.

      https://ruudvanasseldonk.com/2023/01/11/the-yaml-document-from-hell

      And don’t get me started with ansible, it never works the way I think it should and almost every playbook or role I write is a pain to get right. When it works, it’s a really nice tool and I couldn’t manage my homelab as efficiently without Ansible, but it frustrated the hell out of me way too often.