by sdflhasjd · 3y ago · 0 comments
The truest statement of all of HN
It started off with configuration files, but then we needed logic, control flow, or variables; and for some reason nobody goes "ok, maybe we need an actual progamming language now" and instead we've created horrors beyond our comprehension.
Azure Pipelines is the worst I've used: three types of variables, conditional statements return string "True" and "False", and of course it's mostly undebuggable.
However, for now there is just a single implementation in GO.
I came up with basically the same thing as CUE (as described in [1]) on my own, except for the heavy schema stuff.
I think the schema stuff is unfortunately what's going to keep it from adoption.
I mean, I didn't add schema stuff explicitly in, but you can define schemas in mine, which makes it easier.
But making it explicit raises the bar for an implementation and may scare people away from writing one.
In most cases I think it's the fault of the creators of the YAML DSL (e.g. ansible) but with CI pipelines people really just should be writing scripts 100% in other languages and wiring them up to events with YAML. I dont have any sympathy for people using them as programming languages.
I'm sure Microsoft is happy to indulge it though because hey, vendor lock-in.
Anything else is shenanigans.