Ancestors

Toot

Written by Daisy Leigh Brenecki on 2025-01-13 at 03:44

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

Descendants

Written by Cassandra Granade 🏳️‍⚧️ on 2025-01-13 at 03:50

@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

Written by Daisy Leigh Brenecki on 2025-01-13 at 03:51

@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

Written by sabik on 2025-01-13 at 04:16

@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

Written by Daisy Leigh Brenecki on 2025-01-13 at 04:17

@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

Written by xssfox :blobhaj_hearttrans: on 2025-01-13 at 04:22

@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

Written by Cassandra Granade 🏳️‍⚧️ on 2025-01-13 at 04:50

@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

Written by sabik on 2025-01-13 at 04:52

@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

Written by Daisy Leigh Brenecki on 2025-01-13 at 05:19

@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

Written by Simon Welsh on 2025-01-13 at 03:51

@daisy Screw with them all and convert it all to JSON, then quit and become a farmer

=> More informations about this toot | More toots from simon_w@cloudisland.nz

Written by Firstyear on 2025-01-13 at 04:04

@daisy the best part of yaml is that by spec it includes a json parser

=> More informations about this toot | More toots from firstyear@infosec.exchange

Written by keystrokecascade on 2025-01-13 at 16:33

@daisy i just use yaml for silly little config files, are people trying to turn it into a whole ass programing language?

=> More informations about this toot | More toots from keystroke@kolektiva.social

Written by Daisy Leigh Brenecki on 2025-01-13 at 21:50

@keystroke yerp 😭

=> More informations about this toot | More toots from daisy@cloudisland.nz

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113818984669462829
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
312.635652 milliseconds
Gemini-to-HTML Time
5.378228 milliseconds

This content has been proxied by September (3851b).