DEV Community

Discussion on: YAML Tutorial: get started with YAML in 5 minutes

Collapse
 
elmuerte profile image
Michiel Hendriks

I don't agree that YAML is easier to read than JSON or XML. Especially when the file becomes larger, or when you use of non-basic YAML features.
Of the three, YAML is the only one where slight errors produce correct files, but wrong results. What I comprehend might not be the same as what the computer reads.

Collapse
 
ern0 profile image
Zalka Ernő

I'm not a beginner or a stupid one, but I did not get YAML syntax - until now, this is a good introduction.

Anyway, whenever I need a non-trivial data format, I choose XML. It's verbose, not sexy, not too comfortable to write - but if anyone takes a look on it, he or she will instantly understand the XML file.

For trivial data, I prefer
category.sub.name = value