3 ms·
> JSON maps directly to language-native data structures, but XML does not. So what? It is irrelevant. In all the problems we have ever faced when creating fede
by Andrew_nenakhov 5y ago
> JSON maps directly to language-native data structures, but XML does not.
So what? It is irrelevant. In all the problems we have ever faced when creating federated chat applications on various platforms, I can't recall a single time when stream format made any difference.
For example, making your messages appear in consistent order on all of your and your chat partner's devices is a real problem. The development of the efficient strategy to achieve this has nothing to do with format, yet, has a much more visible impact on user experience. In fairness, the debate of what is better suited for the protocol development, Message Sequence Charts [1] or Sequence Diagrams [2] has more sense than debating about XML vs JSON.
[1]: https://en.wikipedia.org/wiki/Message_sequence_chart https://en.wikipedia.org/wiki/Message_sequence_chart
[2]: https://en.wikipedia.org/wiki/Sequence_diagram https://en.wikipedia.org/wiki/Sequence_diagram