3 ms·
Since he opens by referring to a similar argument against JSON for human-editable configuration files, I wondered what format he did like for that. Answer at th
by jrochkind1 7y ago
Since he opens by referring to a similar argument against JSON for human-editable configuration files, I wondered what format he did like for that. Answer at the end appears to be TOML, if you must have one at all.
> Don’t get me wrong, it’s not like YAML is absolutely terrible – it’s probably better than using JSON – but it’s not exactly great either. There are some drawbacks and surprises that are not at all obvious at first, and there are a number of better alternatives such as TOML and other more specialized formats.
> One good alternative might be to just use commandline flags.
> If you must use YAML then I recommend you use StrictYAML, which removes some (though not all) of the more hairy parts.
(I do agree YAML is in retrospect a mistake. The reasons why remind me in some ways of the problems with Markdown).
(Oddly, I can't seem to find an up to date TOML parser in ruby that supports the 1.0 spec...)