Live data from Hacker News

YAML: probably not so great after all (2017)

arp242.net

21–30 of 412 posts

Re: YAML: probably not so great after all (2017)

#21
post #10
post #2

We've spent like 10 years trying to fill in gaps left when we all decided to hate XML. JSON is great as a lightweight DIF between trusted partners. If you care about maintenance and safety, XML with XSD is rock solid.

What is a DIF?

Data Interchange Format

Re: YAML: probably not so great after all (2017)

#26
post #6

With YAML I can never remember what's an object versus a list, string, or number, nor am I ever able to add new stuff to a YAML file and get it to parse correctly without first looking up the spec. And it's impossible to see where large objects start and end. In contrast, JSON is super intuitive and basically self documenting. The only real quirks are that you need to use double quotes, and objects can't have a trail…

You use JavaScript a lot more than python, right?

Intuitive usually means "close to what I'm used to".

Re: YAML: probably not so great after all (2017)

#29
post #2

We've spent like 10 years trying to fill in gaps left when we all decided to hate XML. JSON is great as a lightweight DIF between trusted partners. If you care about maintenance and safety, XML with XSD is rock solid.

XML has many of the same security problems that YAML does, and even some additional ones.

Re: YAML: probably not so great after all (2017)

#30
post #9
post #2

We've spent like 10 years trying to fill in gaps left when we all decided to hate XML. JSON is great as a lightweight DIF between trusted partners. If you care about maintenance and safety, XML with XSD is rock solid.

My biggest complaint with JSON is the lack of support for comments. For that reason, it's hard to take it seriously for human-maintained configurations.

Comments and trailing commas. If those two features were added, I would use JSON for configuring everything. Naked keys would be a distant third. My conclusion is to use TOML or the protocol buffer text format.

I've been slowly ripping out YAML support and converting configurations to TOML.

Post reply on HN