3 ms·
Using json or yaml for your languages config is nice for the application but it's not great for for the developer especially if they want to reuse values or set
by zaphar 7y ago
Using json or yaml for your languages config is nice for the application but it's not great for for the developer especially if they want to reuse values or settings across multiple applications. The solution then is to use a real programming language to generate that config. This is why languages like Dhall, JSonnet, and Cuelang exist. It's why I built my own toy language UCG to explore the space. But you could just as easily use python, javascript, or some other language too.
- Koshkin 7y ago> json or yaml... Dhall, JSonnet, and Cuelang... UCG... python, javascript God, what are we being punished for?
- imtringued 7y agoIf you think that's punishment then you haven't suffered enough. I've seen enough custom written config formats in my life that choosing a widely supported format like YAML or JSON is always the right choice. YAML may have warts but you can learn them in 10 minutes and you're done. Those custom configuration formats don't even have a name or documented syntax.