3 ms·
Thanks for the great article! It echoes most of my thoughts. And thanks for Dotset - didn't know it exists, but it looks very, very neat. In most but the mos
by tie_ 10y ago
Thanks for the great article! It echoes most of my thoughts.
And thanks for Dotset - didn't know it exists, but it looks very, very neat.
In most but the most basic configurations, however, I found myself missing some of variables, inheritance, dates. TOML solves the last two, but as you point out it has limitations. YAML solves the first two, though in a bit of an ugly and obscure way. No wonder Salt and Ansible, two heavy users of YAML configs both pass it through templating engines to reach their goals.
For the lack of better alternatives, I usually end up with a Django-style Python module holding the configuration when I want it to be powerful. It still freaks (non-Python) people out though.
Lua is not a half-bad choice if you ask me. It takes some time getting used to, but it's fast to interpret, and at least one project that I know of - Lsyncd - is making an absolutely great layered configuration on top of it.