3 ms·
I never understood how YAML is more human-readable than JSON. I find JSON much easier to read. What annoys me the most about YAML is that it's easy to misinterp
by cryptica 7y ago
I never understood how YAML is more human-readable than JSON. I find JSON much easier to read.
What annoys me the most about YAML is that it's easy to misinterpret the indentation.
You need a special IDE to know whether a property belongs to a specific object or to its parent.
- thayne 7y ago> I never understood how YAML is more human-readable than JSON Two things: comments and multi-line strings.
- throwaway_391 7y agoMy personal JSON Pet hate is: ``` x = [ "Foo", "Foo2", ] ``` Is not valid, but the following is: ``` x = [ "Foo", "Foo2" ] ``` Makes dealing with packer configs feel like punching yourself in the face. I still prefer it over YAMLs awkward initial learning curve.
- zamadatix 7y agoAt first I found it really annoying but then the more I thought about it the more I came to value the "," semantics as proper validation for a "forgot to put the last element in the list" error which would otherwise be silently hidden via the parser.
- throwaway_391 7y agoSo your comment is vaild. Having strict and not-strict validation would be a nice compromise though (:
- meowface 7y agoWhat? No you don't. You don't need a special IDE any more than you need a special IDE to know if a Python statement is in an "if" block or a parent "if" block.