If the JSON and YAML folks can’t get along, I swear I’ll turn this car around and make you all use XML.
Aren't we just reinventing the wheel, though? Got your structured data format, now you need parsers (tons available for XML, incl SAX, DOM parsers, SimpleXML, Nokogiri...) a schema and validation tools (XSD), a templating mechanism (XSLT), a query language (XPath), ... JSON was a reaction to the verbosity of XML, but a better reaction would have been to work harder on our text editors so that working with XML would b…
YAML: Probably not so great after all
21–30 of 457 posts
Re: YAML: Probably not so great after all
#22Heh, yaml haters unite! I wish yaml would go away.
Yaml despite its flaws works pretty well for Ansible playbooks and for storing localizations.
Re: YAML: Probably not so great after all
#23Is it TOML as the author seems to prefer at the end?
Re: YAML: Probably not so great after all
#24If the JSON and YAML folks can’t get along, I swear I’ll turn this car around and make you all use XML.
inb4 YAML adds "Yeah, nah." and "Nah, yeah." as boolean values. Interpretation is locale dependent.
Re: YAML: Probably not so great after all
#25Earlier quoted context omitted.
Aren't we just reinventing the wheel, though? Got your structured data format, now you need parsers (tons available for XML, incl SAX, DOM parsers, SimpleXML, Nokogiri...) a schema and validation tools (XSD), a templating mechanism (XSLT), a query language (XPath), ... JSON was a reaction to the verbosity of XML, but a better reaction would have been to work harder on our text editors so that working with XML would b…
> JSON was a reaction to the verbosity of XML, but a better reaction would have been to work harder on our text editors so that working with XML would be just as easy as working with JSON in terms of the numbers of keystrokes needed. Isn't that only solving half the problem? XML is also pretty difficult to read
But why is XML so freaking great? We can’t even tell if whitespace is significant or not. If a schema says it’s insignificant then that’s that!
https://www.oracle.com/technetwork/articles/wang-whitespace-... That alone is TERRIBLE! (Same problem with YML.) Why should I bother with that? JSON can encode strings, hashes, arrays etc. in a way that’s instantly interoperable with JS and is far far more unambiguous.
What exactly is so great about XML that you can’t do with JSON in a better way? Schemas can be stored in JSON. XPATH can specified for JSON. Seriously I never got the appeal of XML except that it was first.
Re: YAML: Probably not so great after all
#26The idea is to have 2 levels: a simple, minimal syntax/notation (think binary) called Tree Notation, and then have higher level grammars on top of that, called tree languages.
It works for encoding data and also for programming languages, regardless of paradigm.
Re: YAML: Probably not so great after all
#27Re: YAML: Probably not so great after all
#28Re: YAML: Probably not so great after all
#29If the JSON and YAML folks can’t get along, I swear I’ll turn this car around and make you all use XML.