Sunday, October 07, 2007

URL syntax and folders

The directory, or folder, is a central feature of every operating system. Windows Explorer is one of the most used applications on the planet, showing the contents of each folder and allowing document navigation.

And yet, on the web there is no such thing as a "folder". Click on "www.yahoo.com/finance/" and you don't see a list of all the documents in the finance folder - you see a webpage. If you're looking for a particular item, you don't navigate a hierarchy - you type a search.

The only enforced hierarchy is in the domain name - "www" is part of the "yahoo" domain inside the "com" top level domain. This hierachy is part of DNS, and is used so that the correct server responds to your browser.

"/" is just another character

Check out the URL http://blog.jonudell.net/2007/05/24/restful-web-services/. Do you think that on Jon's server, there is a "2007" directory, under which there is a "05" directory? No - the complete path "2007/05/24/restful-web-services/" is just a string parsed by the server, so the relevant resource can be displayed programmatically.

"/" is just another character in the URL path. Jon could have used "." instead, or even removed it altogether: "20070524restful-web-services". Everything is flat on the web.

The only reason why Jon added the "/" is convention - when people see the URL, it helps them understand what they might get if they click on it. "/" is a common convention to indicate hierarchy.

So the "/" does NOT represent directory structure.

What if I want web folders?

The main thing that folders provide is the ability to view the set of documents in a collection (e.g. all the pictures in an "images" folder).

On the web, there's a technology that solves just this problem: RSS. And it's far more flexible than a one-dimensional directory hierarchy; you can have RSS feeds for

  • all photos of green flowers
  • all photos of any green objects (including flowers)
  • all photos of flowers of any colour
Try doing this with folders - it's impossible!

In that respect, the URL and RSS feeds can support every navigation method: search, tagging, and hierarchy.

No more folders?

There are two major issues with folders. The first has already been mentioned: they are one dimensional, and therefore don't support modern techniques such as search and tagging. The second issue is that they're not scalable; if you've got a million (or even a billion) documents, navigating up and down the hierarchy to find your file takes way too long.

So it's a great thing that web was designed without folders. Instead, a combination of URL syntax conventions and RSS provides far better flexibility and power.

Friday, October 05, 2007

Adobe revisited

Six months ago, I said Adobe had better put together an internet strategy quickly, or risk going under. They delivered.

Adobe have a new internet strategy, and very impressively managed it is - they're driving pretty aggressively to use their new AIR / Flex platform to build an array of online services. Just this last month we've had announcements about online Photoshop Express, Online visual programming, online word processing, online file sharing, and online voice, messaging and presence.

Apart from the sheer breadth and depth of these developments, they're impressive for being cleverly tailored to expose specific browser weaknesses: animation, pagination, and realtime communications.

The browser within the browser

Most people see Microsoft's Silverlight and Sun's JavaFX as Adobe's chief competition. But they'll have a hell of a job catching up with Adobe's 93% market share, not to mention their best in class development and design tools.

No, the real competition for Flash is the browser itself. Adobe have two to three years until most browsers come with native video and audio players, and increasingly powerful layout and programming engines. They're rushing to fill this gap with their own proprietary technology, hoping to sell design and programming tools, not to mention Flash-based web applications.

Flash is the browser within the browser - displaying text and images, in addition to diagrams, sound and videos. Some websites - e.g. Sony Ericsson - leave little room for HTML.

So Adobe look to be winning the "Rich Internet Application" market. The question is, how will RIAs fare against straight HTML / javascript?

Betting against the internet?

Adobe claims to be betting that the internet will beat client applications. Technically, they're correct - they're relying on TCP/IP, HTTP and the URI. But they're not betting on the web, because the web is about HTML and CSS, not proprietary Flash plugins.

HTML/CSS vs Flash will be a fascinating race. It'll take about two years to know the winner; will Ogg/Theora beat Flash video? Can SVG ever compete for vector graphics? Can browsers handle animation natively? Will flash text and layout ever displace HTML?

My heart says HTML/CSS will win; my head says it will come down to the wire.

Thursday, September 27, 2007

Holdout client applications

If the web is so great, why are there still client application hold-outs?

Look at the popular PC applications of recent years: Skype, IM, Office 2007, iTunes, games. Why have they followed the client approach?

ApplicationWhy client?In two years
Skype, IM Skype and IM require real-time communication between two parties. That's something that the HTTP request-response model of the web will never solve Browser plug-ins are incorporating real-time technologies like XMPP - this will remove the need for separate client applications
Office 2007 Office 2007 has exploited its massive installed base, a far better user interface from the previous version, and certain browser weaknesses in page layout and editing. Google Docs, Zoho and Wikis are already encroaching on Office's territory. These businesses will expand massively in the next couple of years, forcing less dominant Microsoft to lower prices.
iTunes iTunes relies on an offline model, using downloads to iPods. It also relies on DRM, which browsers are not equipped to handle. Both of these dependencies are crumbling (iPods are getting Wifi access, and DRM is fading) - I wouldn't be surprised if iTunes was replaced by iTunes.com soon.
Games Most games rely on advanced graphics and animations, which browsers are not designed to support I can't see browsers competing in the next few years, except perhaps for simple games like Tetris

Conclusion: except for games requiring powerful graphics engines, the web will continue to replace today's common client applications.