by dhzhzjsbevs · 4y ago · 0 comments
Only yaml isn't great and toml is so much worse.
Sorry sounds off topic but the way you say it's "easy to configure" and include toml in the same sentence just gave me flashbacks to traefik.
Complicated toml is unreadable, if yaml isn't enough, you probably need json, not toml.
I actually find traefik quite nice to configure vs. the old conf disaster of apache. I've configured it by hand and also generated config by scripts with ease.
If you want to complain about a design on HN the better way is to suggest a design you think is superior.
Parsing json as a human is unambiguous and simple.
Parsing yaml and toml is full of ambiguity and readability problems depending on where you're reading it.
The only people who think json is a bad format are the type of people that think semicolons are the problem. They're just not.
This is however besides the point. I hate any format if it is misused. TOML is great for config files up to a certain complexity. It is not great for configuration files that should be code. If you feel your configuration file could use a configuration file, you might be doing it wrong.
TOML to me is an successor to INI, with support for lists and other things that can be useful for typical configurations. I have never had any configuration-syntax related issue with any tool that used TOML for configuration — YAML on the other hand...
shrug
The full yaml standard is also full of features no one ever actually uses in practice, but if you don't implement it, you are thusly not compliant with the specification.
If you read it, you'd go, "Wow, you can do that?" and "That's bad that you can do that."
perl -MYAML -E 'say YAML::LoadFile("filename.yaml")->{foo}{bar}'
what level of tooling do you mean?So it doesn't help that:
* there is YAML 1.1 and YAML 1.2, and you need to know which one you want to use
* there is this thing called "core schema" and it's possible to use other schemas, but nobody seems to care
* the spec itself is complex, and hard to implement well
This is one of the greatest piece of software I ever used.