3 ms·
XML is better than YAML. change my mind. disclaimer: hate both
by baq 5y ago
XML is better than YAML.
change my mind.
disclaimer: hate both
- dagw 5y agoI can teach most people (including non-programmers) enough of a subset of yaml for them to edit/create working config files (for a particular app) in a text editor by themselves. You cannot do that with XML If you're only reading and writing the files via a library, then XML is probably better.
- postalrat 5y agoI can teach people enough csv to write config files and much more. CSV FTW?
- Thiez 5y agoSince YAML is (almost?) a superset of JSON, you can treat it as "JSON with comments". Then it no longer has significant whitespace and strings won't magically coerce to booleans because the quotes are mandatory in JSON... so if you use YAML that way it's pretty good. But YAML, as it is "intended" to be written? I think I'd rather have XML as well...
- maximus-decimus 5y agoAt least YAML doesn't make my eyes bleed.
- Viliam1234 5y agoThis is a valid YAML document! --- --- - --- --- --- \ \ / / / \ | \/ | | | \ / / ^ \ | \ / | | | / / / / \ \ | |\/| | | ---| ---- --- --- --- --- ------ (At least http://www.yamllint.com/ http://www.yamllint.com/ says so.)
- baq 5y agonotice of meme acquisition no action required