3 ms·
What are the practical modern alternatives for YAML use cased? TOML, others?
by miohtama 4y ago
What are the practical modern alternatives for YAML use cased? TOML, others?
- brazzy 4y agoRead the article?
- progx 4y agoTOML is good for simple plain structures. As soon as you have more nested structures, you can also use json.
- CipherThrowaway 4y agoFor simple use cases like key-value style config you can use JSON or TOML without too many issues. For IaC the alternative is general purpose programming languages using declarative infrastructure APIs. E.g. TS, Go, Python with CDK, CDKTF, Pulumi. For CI are stuck with YAML for now.
- ainar-g 4y agoPeople often forget about the environment, and I feel like a lot of the simpler services and applications could be configured through it easily. For anything that requires more complex structures, JSON5 (https://json5.org/ https://json5.org/) has been gaining traction. It's basically JSON that allows a couple of more things, including comments, trailing commas, and even unquoted keys, if you're into that.
- rr888 4y agoThis for this it indeed looks very much better than json or yaml.
- RedNifre 4y agoedn Extensible Data Notation, it's to Clojure what json is to Javascript.
- AndyKluger 4y agoAs another top-level comment mentions, one alternative is NestedText, where everything is a string unless the ingesting code says otherwise, and there is no escaping needed at all.