Joel Spolsky has an seminal article entitled Don't Let Architecture Astronauts Scare You where he wrote

A recent example illustrates this. Your typical architecture astronaut will take a fact like "Napster is a peer-to-peer service for downloading music" and ignore everything but the architecture, thinking it's interesting because it's peer to peer, completely missing the point that it's interesting because you can type the name of a song and listen to it right away.

All they'll talk about is peer-to-peer this, that, and the other thing. Suddenly you have peer-to-peer conferences, peer-to-peer venture capital funds, and even peer-to-peer backlash with the imbecile business journalists dripping with glee as they copy each other's stories: "Peer To Peer: Dead!"

 The Architecture Astronauts will say things like: "Can you imagine a program like Napster where you can download anything, not just songs?" Then they'll build applications like Groove that they think are more general than Napster, but which seem to have neglected that wee little feature that lets you type the name of a song and then listen to it -- the feature we wanted in the first place. Talk about missing the point. If Napster wasn't peer-to-peer but it did let you type the name of a song and then listen to it, it would have been just as popular.

This article is relevant because I recently wrote a series of posts explaining why Web developers have begun to favor JSON over XML in Web Services. My motivation for writing this article were conversations I'd had with former co-workers who seemed intent on "abstracting" the discussion and comparing whether JSON was a better data format than XML in all the cases that XML is used today instead of understanding the context in which JSON has become popular.

In the past two weeks, I've seen three different posts from various XML heavy hitters committing this very sin

  1. JSON and XML by Tim Bray - This kicked it off and starts off by firing some easily refutable allegations about the extensibility and unicode capabilities of JSON as a general data transfer format.
  2. Tim Bray on JSON and XML by Don Box - Refutes the allegations by Tim Bray above but still misses the point.
  3. All markup ends up looking like XML by David Megginson - argues that XML is just like JSON except with the former we use angle brackets and in the latter we use curly braces + square brackets. Thus they are "Turing" equivalent. Academically interesting but not terribly useful information if you are a Web developer trying to get things done.

This is my plea to you, if you are an XML guru and you aren't sure why JSON seems to have come out of nowhere to threaten your precious XML, go read JSON vs. XML: Browser Security Model and JSON vs. XML: Browser Programming Models then let's have the discussion.

If you're too busy to read them, here's the executive summary. JSON is a better fit for Web services that power Web mashups and AJAX widgets due to the fact it gets around the cross domain limitations put in place by browsers that hamper XMLHttpRequest and that it is essentially serialized Javascript objects which makes it fit better client side scripting which is primarily done in Javascript. That's it. XML will never fit the bill as well for these scenarios without changes to the existing browser ecosystem which I doubt are forthcoming anytime soon.

Update: See comments by David Megginson and Steve Marx below.


 

Categories: XML
Tracked by:
http://www.megginson.com/blogs/quoderat/2007/01/04/in-praise-of-architecture-ast... [Pingback]
http://blogs.msdn.com/peterlau/archive/2007/01/04/dare-obasanjo-discusses-how-br... [Pingback]
http://slashstar.com/blogs/tim/archive/2007/01/05/web-2-0-is-more-than-a-buzzwor... [Pingback]
http://www.arcadianvisions.com/blog/?p=43 [Pingback]
http://blogs.nitobi.com/dave/?p=178 [Pingback]
http://joseph.randomnetworks.com/archives/2007/01/08/json-does-not-require-eval/ [Pingback]
http://www.ajaxgirl.com/2007/01/04/json-vs-xml-the-debate/ [Pingback]
http://cephas.net/blog/2007/01/10/links-1-9-2007/ [Pingback]
http://www.JSON.Com/2007/01/22/xml-is-better-because/ [Pingback]
http://blogs.msdn.com/msyed/archive/2007/01/24/json-vs-xml.aspx [Pingback]
http://blogs.zdnet.com/microsoft/?p=186 [Pingback]
http://zabivwn.net/colorado/sitemap1.html [Pingback]
http://weujmru.net/rideshare/sitemap1.html [Pingback]
http://weujmru.net/volunteers/sitemap1.html [Pingback]
http://gk3hen1.net/03/sitemap1.html [Pingback]
http://akytft5.net/sitemap1.html [Pingback]
http://privet.150m.com [Pingback]
http://hrtfjhk.net/sitemap1.html [Pingback]
http://anubis.sslcatacombnetworking.com/~rocata/phones/sitemap1.html [Pingback]
http://host239.hostmonster.com/~blogford/sitemap4.html [Pingback]
http://gator413.hostgator.com/~digital/office/sitemap1.html [Pingback]
http://fwve5e4.net/cnn/sitemap1.php [Pingback]
http://xu6r4om.net/sitemap1.html [Pingback]
http://bh1pwys.net/movies/sitemap1.html [Pingback]
http://d579737.u108.floridaserver.com/sitemap2.html [Pingback]
http://gator442.hostgator.com/~hockteam/movies/sitemap1.html [Pingback]