2 ms·
We actually offer both for configuration files of our software - YAML can be very pleasant to write and read for small datasets or those without much depth, wit
by rf15 3y ago
We actually offer both for configuration files of our software - YAML can be very pleasant to write and read for small datasets or those without much depth, without the overhead of curly brackets and quotation marks on everything. The original problem these formats solve is that people just want a simple nestable key-value structure/format, and both deliver on it - unlike xml. (when do you use an attribute vs a tag and text element?)
- kaba0 3y ago> when do you use an attribute vs a tag and text element When the schema says so — you even get auto-complete for that in any half-decent editor.
- rf15 3y agoI know the history of xml, but just to get back to my original premise: why has a tag (a kind of key in the mind of most readers) multiple "kinds" of values/children in parallel, especially one set that is map-shaped (attributes) while the other is array-shaped (proper children)?