y'know, I'd seriously consider becoming a SRE if y'all would just stop using YAML for everything
or at the very least, stop building half-baked programming languages on top of YAML
=> More informations about this toot | More toots from daisy@cloudisland.nz
@daisy I don't even hate YAML entirely, but yeah, it absolutely isn't a good basis for building a programming language off of. Debugging thousand-line CI definitions written out in YAML is not fun.
=> More informations about this toot | More toots from xgranade@wandering.shop
@xgranade YAML is fine (not amazing, but fine) for what it is. It is objectively the wrong tool for the tasks that most DevOps tooling uses it for.
=> More informations about this toot | More toots from daisy@cloudisland.nz
@daisy @xgranade
Also wrong tool, using Jinja to template out anything with significant whitespace, even just significant line ends
=> More informations about this toot | More toots from sabik@rants.au
@sabik @xgranade yep—nothing in DevOps is truly just YAML, it's either j2/erb/gomplate/etc generating YAML or it's YAML with some vendor-specific “special" keys/values that essentially allow you to construct a poor man's AST by hand.
=> More informations about this toot | More toots from daisy@cloudisland.nz
@daisy @sabik @xgranade was considering today about writing a dsl to compile into github actions yaml because fuck me that thing has so many footguns
=> More informations about this toot | More toots from xssfox@cloudisland.nz
@xssfox @daisy @sabik There's some cool examples out there of using KDL instead of YAML... doesn't entirely solve the templating footguns, but I personally find it a lot more legible at least.
https://github.com/kdl-org/kdl/blob/2.0.0/examples/ci.kdl
=> More informations about this toot | More toots from xgranade@wandering.shop
@xssfox @daisy @xgranade
Pro tip: unless you need one of the yaml features (like anchors or merge keys or comments etc), compile to json instead
=> More informations about this toot | More toots from sabik@rants.au
@xssfox @sabik @xgranade would something like Dhall/Pkl/Jsonnet/Cue/etc do what you need to do maybe?
=> More informations about this toot | More toots from daisy@cloudisland.nz This content has been proxied by September (3851b).Proxy Information
text/gemini