archive.today and archive.ph (also .is, .md, .fo, .li, .vn) could be Russian assets.

  • 1 Post
  • 5 Comments
Joined 1 year ago
cake
Cake day: March 5th, 2025

help-circle


  • I never understood why people would say JSON is superior, and why XML seemed to be getting rarer, but the author explains it:

    XML was not abandoned because it was inadequate; it was abandoned because JavaScript won.

    I’ve been using it ever since I started using Linux because my favorite window manager uses it, and because of a long-running pet project that is almost just as old: first I used XML tools to parse web pages, later I switched to dedicated data providers that offered both XML and JSON formats, and stuck to what I knew.

    I’m guessing that another reason devs - especially web devs - prefer JSON over XML is that the latter uses more bytes to transport the same amount of raw data. One XML file will be somewhat larger than one JSON file with the same content. That advantage is of course dwarved by all the other media and helper scripts - nay, frameworks, devs use to develop websites.

    BTW, XML is very readable with syntax highlighting and easily editable if your code editor has some very basic completion for it. And it has comments!