https://noyaml.com/ YAML is bad. Every YAML parser is a custom YAML parser. https://matrix.yaml.io/valid.html
YAML: Probably not so great after all
61–70 of 457 posts
Re: YAML: Probably not so great after all
#62Re: YAML: Probably not so great after all
#63Re: YAML: Probably not so great after all
#64Earlier quoted context omitted.
inb4 YAML adds "Yeah, nah." and "Nah, yeah." as boolean values. Interpretation is locale dependent.
YAML 1.2 fixed this making booleans just true/false and it's a real shame that a lot of things still use 1.1
Re: YAML: Probably not so great after all
#65The superior replacement for XML, JSON and YAML is the SQLite .db file. Easy to “parse”, easy to manipulate programmatically, what more could you want?
- Meaningful version control
Re: YAML: Probably not so great after all
#66Earlier quoted context omitted.
Interestingly I find SGML-esque to be quite unpalatable. I get the feeling doing code reviews would be nightmarish.
Why? It's no worse than S-expressions.
Re: YAML: Probably not so great after all
#67Earlier 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…
Verbosity certainly is an issue with XML, but far from the only one. IMO the main problem of XML is that it was designed as a markup language, but then misused as a data structure serialization language. When used as a markup language, the distinction between attributes and children is meaningful. When serializing data structures, the dichotomy breaks down. For most subfields of a larger data structure, it's not obvi…
Re: YAML: Probably not so great after all
#68Disclosure: 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
This sounds a lot like s-expressions.
Re: YAML: Probably not so great after all
#69The superior replacement for XML, JSON and YAML is the SQLite .db file. Easy to “parse”, easy to manipulate programmatically, what more could you want?
Not human readable...
This refrain just cheeses me right off every time. Nothing is human readable! Everything requires a program to read it, because no human being can read states of charge or states of magnetic polarization directly.
What makes something 'human readable' or not is a software tool. Underlying that tool is a data format that the tool can accept and display. What everyone means when they try to sound smart by saying 'human readable' is just 'plain text.' In other words, they know where to find the dumbest possible reader/editor for it. Text editors are the dumbest possible editors because they cannot constrain edits to conform with the grammar of the interface language; they allow bugs at a point in the development process where it is trivial to disallow bugs, especially considering that interface languages should probably be, at most, regular languages.
I'll step off my soapbox, now.
Re: YAML: Probably not so great after all
#70So what's the HN consensus on the best format for config files? Is it TOML as the author seems to prefer at the end?