magic_lobster_party

  • 1 Post
  • 706 Comments
Joined 1 year ago
cake
Cake day: August 15th, 2024

help-circle
  • Not the one you asked, but I don’t like XML compared to alternatives like JSON.

    The main problem with XML is that it’s an unnecessarily complicated standard. There are often multiple ways to represent the same thing, each with their own gotchas and drawbacks.

    JSON on the other hand has a much simpler standard. The entire JSON standard fits easily in one page. It’s also closer to how data is actually represented in memory. There’s often one ideal way to represent whatever you have in memory to a JSON file, and the reverse is also true.

    Despite it’s simplicity, JSON covers most cases XML would cover. Often in a more elegant way.

    If you like pain, then XML is the right choice for you.