3 ms·
Writing YAML is not easy for end-users. The indentation--especially in large files--is really difficult to keep track of, and some really basic stuff like when
by amanzi 8y ago
Writing YAML is not easy for end-users. The indentation--especially in large files--is really difficult to keep track of, and some really basic stuff like when to quote strings is not consistent at all.
- mixmastamyk 8y agoNope, indentation is not a problem with indentation guides. A misplaced comma in a JSON file however kills it, gets me every time I have to write it by hand. Also, it is true YAML has too many features, though I find they are typically ignored or disabled.
- krapp 8y agoA misplaced comma is also not a problem in an editor with syntax highlighting, but between the two, indentation could take longer to fix.
- mixmastamyk 8y agoSyntax highlighting doesn't count commas. The problem is JSON doesn't allow trailing commas, so adding or reordering frequently results in a difficult to diagnose error.
- krapp 8y agoFinding out if a set ends in a comma or not still makes it easier to debug than YAML.
- mixmastamyk 8y agoNot my experience, 10x more trouble with long JSON.
- shirakawasuna 8y agoIt definitely is. You have no idea how intimidating an equivalent JSON file would be for a new user creating a pretty simple k8s setup. YAML hides most of the scary brackets and quotes so that new users can focus on copy-and-pasting semantic tidbits. That said... I don't like YAML...