Earlier quoted context omitted.
Umm, no. You can find cases where JSON sucks, but you have to look for them. You can find cases where XML doesn't suck, but you have to look for them.
Other than looking ugly and being a pain to type does xml actually suck?
YAML: Probably not so great after all
31–40 of 457 posts
Re: YAML: Probably not so great after all
#32So what's the HN consensus on the best format for config files? Is it TOML as the author seems to prefer at the end?
Re: YAML: Probably not so great after all
#33You might end up with valid YAML, but you won't know until the YAML consumer barfs.
BTW, all of a sudden XML with DTDs are looking sane again :)
Re: YAML: Probably not so great after all
#34Disclosure: I work on Tree Notation. It’s the future of file formats, IMO. The 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. https://github.com/treenotation/jtree
Re: YAML: Probably not so great after all
#35Earlier quoted context omitted.
Umm, no. You can find cases where JSON sucks, but you have to look for them. You can find cases where XML doesn't suck, but you have to look for them.
Other than looking ugly and being a pain to type does xml actually suck?
XPath is a struggle with namespaces, as well. It’s ... trying.
Re: YAML: Probably not so great after all
#36So what's the HN consensus on the best format for config files? Is it TOML as the author seems to prefer at the end?
Re: YAML: Probably not so great after all
#37If 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…
Re: YAML: Probably not so great after all
#38Disclosure: I work on Tree Notation. It’s the future of file formats, IMO. The 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. https://github.com/treenotation/jtree
Re: YAML: Probably not so great after all
#39Earlier quoted context omitted.
You say that like it'd be a bad thing. I like XML.
You say that like you’ve never really used XML... (Mostly /s. Come at me:))
My one request would be to bring back to SGML-like closing tag abbreviation:
That is, instead of
qux
we should be able to write qux
I think this one change would make XML more "palatable" for the JSON/YAML/TOML crowd.Re: YAML: Probably not so great after all
#40Disclosure: I work on Tree Notation. It’s the future of file formats, IMO. The 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. https://github.com/treenotation/jtree