A 10 minute read covering some YAML edge-cases that you should have in mind when writing complex YAML files

  • moonpiedumplings
    link
    fedilink
    English
    arrow-up
    9
    ·
    edit-2
    3 days ago

    See also: noyaml.com

    I personally like yaml though. Although I won’t deny it can be hellish to write without a linter, it’s just like any other language with tab autocomplete and warning for sus things if you have the right software set up.

    I used the ansible and kubernetes VSCode extensions, and I really like them both. With the kubernetes one, you can just start typing the name of the resources you want to create, and then press tab, and boom, a template is created.

    I would much rather see something like Nix be the norm, but I find Nix very frustrating to edit because the language servers for it are nowhere near as developed.

    • GTG3000
      link
      fedilink
      arrow-up
      1
      ·
      2 days ago

      This is kinda my experience. If there’s an extension keeping track of schema and linting, it’s alright.

      If you’re doing it by hand, well, good luck.

      My personal favourite way to make configs is lua. But that’s neither here nor there.