6 ms·
Heh, yaml haters unite! I wish yaml would go away.
by rc_mob 7y ago
Heh, yaml haters unite! I wish yaml would go away.
- yjftsjthsd-h 7y agoFor what use cases, and what would you prefer?
- jeltz 7y agoI hate yaml but I have yet to find a better option for deeply nested confog files. Toml is the closest thing I have seen. Toml support is also not that great. Yaml despite its flaws works pretty well for Ansible playbooks and for storing localizations.
- zamadatix 7y agoWould you say actual YAML does a better job in Ansible over just writing JSON and letting it be parsed as YAML?
- crdoconnor 7y agoHave you tried writing JSON by hand or diffing it in a pull request?
- geerlingguy 7y agoOr commenting JSON?
- zamadatix 7y agoErr, yes? Is quoting your keys, delimitation members with a comma instead of whitespace, and putting brackets/braces around collections really that confusing that people struggle to edit it by hand or read it in a diff? I think the syntax is actually what makes it more human readable, it's still 95% text/numbers just annotated with information that makes it clear what things actually are instead of hiding them behind confusing computer parsing rules nobody is going to think about while reading human-friendly text.
- evilduck 7y agoI can at least write comments in YAML.
- zamadatix 7y agoThat's probably the biggest thing YAML has going for it and probably the only feature I take advantage of when something takes YAML instead of JSON.
- drcongo 7y agoEven the creator of Ansible got frustrated by YAML - https://medium.com/@michaeldehaan/16-ways-opsmop-improves-on-ansible-number-17-is-an-off-by-one-error-bf989420edca https://medium.com/@michaeldehaan/16-ways-opsmop-improves-on...
- h1d 7y agoI don't care for occasional config file writing but for stuff like ansible where writing YAML is the main job, I just wish it had chosen s other format but I guess it's too late.