▲ | jayd16 8 hours ago | |||||||||||||||||||
Why do we think an arbitrary language is easier to reason about? If it was so easy you could just do it now. The yaml could be extremely simple and just call into your app, but most don't bother. I'm certainly willing to believe that yaml is not the ideal answer but unless we're comparing it to a concrete alternative, I feel like this is just a "grass is always greener" type take. | ||||||||||||||||||||
▲ | VGHN7XDuOXPAzol 8 hours ago | parent | next [-] | |||||||||||||||||||
Is it actually possible to just have the YAML that calls into your app today, without losing the granularity or other important features? I am not sure you can do this whilst having the granular job reporting (i.e. either you need one YAML block per job or you have all your jobs in one single 'status' item?) Is it actually doable? | ||||||||||||||||||||
▲ | ok123456 6 hours ago | parent | prev | next [-] | |||||||||||||||||||
You don't have to reason about them. You write a compiler that enforces stronger invariants above and beyond everything is an array/string/list/number/pointer. Good general-purpose programming languages provide type systems that do just this. It is criminal that the industry simply ignores this and chooses to use blobs of YAML/JSON/XML with disastrous results---creating ad-hoc programming languages without a typesystem in their chosen poison. | ||||||||||||||||||||
| ||||||||||||||||||||
▲ | tracker1 6 hours ago | parent | prev | next [-] | |||||||||||||||||||
I've done exactly this a few times... ensure my scripting host is present then use scripts for everything. I can use the same scripts locally without issue and they work the same on self-hosted runners. Note: mostly using Deno these days for this, though I will use .net/grate for db projects. | ||||||||||||||||||||
▲ | esafak 7 hours ago | parent | prev | next [-] | |||||||||||||||||||
> If it was so easy you could just do it now. Some do just that: dagger.io. It is not all roses but debugging is certainly easier. | ||||||||||||||||||||
▲ | iLoveOncall 6 hours ago | parent | prev [-] | |||||||||||||||||||
There is a battle tested example of YAML vs programming languages in CloudFormation templates vs CDK. I don't think anybody serious has any argument in favor of CloudFormation templates. |