News for hackers. Stuff that matters.
Re:YAML: The Norway Problem (2022) by makeitdouble on Saturday April 12, 2025 @10:36PM (#43669603)
I can't run the examples right now, but looking at the last "print(template.to_json())" line, looks like the main use case is JSON ?

On cloud infra, yes, having one or two layers of languages is a natural situation. GCP and AWS both accepting (encouraging?) JSON as a subset of YAML makes it a simpler choice when choosing an auto generating target.

You mention people wanting to author the generated files, I think in other situations tweaking the auto-generated files will be seen as riskier with potential overwriting issues, so lower readability will be seen as a positive.

Re:YAML: The Norway Problem (2022) by dissent on Saturday April 12, 2025 @11:30PM (#43669876)
That's the point really, you can generate JSON or YAML and it doesn't really matter. If you want to include 100 similar objects in that output, you can use a for loop. You can't do that in plain JSON/YAML.