June 3rd, 2009

Goodbye Browsers: What Next?

It has been mooted fairly often: that the web may be breaking free from the browser, and I’m enclined to agree. So what does this mean to developers and how will this effect the web development process (and my first Erlang Web App)?

I’m currently upgrading a site that will need dynamic elements and interactivety intertwined with flat HTML files in a standard directory structure. During the technical design process it is also becomming apparent that these dynamic features will need to be distributed over various media and platforms.

None of these are unusual requirements and I’ve been developing similar projects for a number of years. However, my approach is beggining to change. Previously I would have built the whole system with my PHP framework of choice (CakePHP) and used it’s inbuilt Views to publish the content in various formats (e.g. HTML and RSS), I’m now rethinking.

Our content needs to spread onto the ever widening array of platforms and media, so our publishing methods need to become more flexible. The solution I’m favouring is to publish content over some sort of web service or API and have the client platform, what ever it may be, interpret (and possibly redistribute) it. The RDF Standard is one format that is gaining popularity, especially as semantic technologies become more mainstream.

These principals are probably further advanced in the realm of Web Applications: it is becoming common place to produce an API allowing other platforms to interact with them. Turning the app into a platform (via an API) allows other’s to build on top in turn engraining it into their business model (For example Good Baad relies on 5 or 6 different APIs). Google have been providing useful APIs for years and the results are plain to see.

It seem likely to me that the development process may change as a result. Currently an web app or content is built first as a website and then expanded into and API or feed. It seems more practical to build the API first and then this can be adapted to other platforms.

For example: I moved my blog consumption to Google Reader, now I rarely see the sites that the content originates from; I interact with blogs entirely via their RSS feed over the platform of my choosing. With web applications it seems like the same is becoming true, very few people interact with Twitter directly, but prefer to interact via the API (3rd party apps is one key to their phenomenal growth). And, if concepts like Ubiquity take hold: the web may break free of the browser entirely.

And this brings me around to my Erlang project: I’m still mulling over ideas, but it seems to me that a real-time app that is purely an API would be a very good first project. Also, Erlang seems very well suited to the Web API building task, e.g: from a data distribution view point Couch DB is pretty much all you need.

Over the next few weeks I’ll build a simple Erlang app that interacts with the web over an API, it’s possible I won’t need to worry about building a client at all.

  • But Google Reader runs in the browser!

    The whole point of browser-based development is that you don't need to download a separate client for each application.

    Even if you choose to build your service as an API rather than a website, the content will more than likely be accessed by a browser-based aggregator.

    The browser will be around for a long time yet, although I agree that the need for certain types of content-driven websites is diminishing as people consume more through aggregators.
  • You're absolutely right about G.Reader and the browser, what I really meant to illustrate was that the standard HTML site may be dying rather than the browser (although I do think being able to deliver content and services into other platforms will become more important).
  • Quite a revelation of a post you've got here!

    I've been doing some research for my community http://harkopen.com and I am currently learning about rdf and his benefits, it will be included natively in Drupal 7 from what we've heard and will try to use it to extend the web's power beyond the browser.
  • More good discussion over at Hacker news
blog comments powered by Disqus
Powered by Wordpress using the theme aav1