Hacker News new | past | comments | ask | show | jobs | submit login

> XML is not a good serialization format

Indeed, but here we're talking about a text format for human-human communication, something that markup languages (SGML, XML) were made for.




in my experience (working with academic data, JSON-LD), being aggressively semantic and adding namespaces to your format very rarely results in out of the box machine interoperability, and picking the right format out of a bunch being offered is always extra complexity on the side of the developer. but most of the time you'll likely be writing code specifically for one source of data.

this leads to such standards having a shadow de-facto convention-based standard (e.g. everyone on the fediverse plays nice with Mastodon, despite ActivityPub allowing for things to be different).

if you need it, just versioning your schema is imo a much better experience for developers


> adding namespaces to your format

Granted, in the case of XMPP (but I'm no expert here) they might have overused namespaces with all those protocol extensions (XEPs) using their own NS. XML namespaces are one of the few additions on top of SGML and might've looked like a good idea at a time when many new vocabularies were expected, but they're controversial even among those who introduced them. Eg consider the following key quote from [1]:

> On the one hand, the pain that is caused by XML Namespaces seems massively out of proportion to the benefits that they provide. Yet, every step on the process that led to the current situation with XML Namespaces seems reasonable.

[1]: https://blog.jclark.com/2010/01/xml-namespaces.html




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: