Hacker News new | ask | show | jobs
by edgan 3156 days ago
Many people hate XML more than JSON, and I would agree with them. I hate both, and prefer yaml.
2 comments

Have you really read the YAML spec? It's a rather complex grammar. I get that YAML is visually cleaner than JSON; however, unless we're constrained to very trivial use cases there's probably too much to think about. JSON's strong lack of TMTOWTDI is an asset here.

As for XML: namespaces, DTDs, entities, XSD, XSL, XPath, and on and on, have resulted in some absolutely horrendous architecture astronautism. XML itself is (mostly) perfectly fine but there are too many unqualified people in the industry wielding XML, poorly, and creating massive headaches. XML also presents some interesting security challenges.

json and xml are visually balanced. All beginnings have an end. I have trouble with yaml because it lacks that.