Main Page

Rails vs. Django: A Comparative Programming Exercise

Django logoRails logo

Those of you trying to determine whether to write your next web application using the Django framework or Ruby on Rails might find this article interesting: it's a comparative case study of the development of a web application using Django and Rails.

In the case study, two developers work from the same specification to implement the same application, with one using Django and the other using Rails. The application, Habitual Readers is a book club's public website. It lets viewers see the books that each book club member has read, as well as their comments for each book. Books are categorized using tags, and additional book information is retrieved from Amazon.

The conclusion that the authors of the article reached was that while each framework has its strengths, there is no clear technical benefit for an experienced Rails development team to switch to Django or vice versa and that Ruby developers should use Rails while people more comfortable with Python should use Django. Here's a table that summarizes the aspects of both frameworks that were investigated:

Factor Rails Django
Support for model and schema evolution Integrated framework for schema evolution. Minimal.
Internationalization No support. Some support.
Designer Friendly Templates? Possible, with disciplined practices or use of third-party library. Yes.
Third Party Plugin Support Mature plugin architecture, well used by the community. Some support via the applications mechanism.
Javascript Support Prototype and Scriptaculous bundled with Rails. RJS framework simplifies their use. Possible, but no direct support for any particular library.
Flavour Concise. Explicit.

I found this interesting: rather than post it as a web page or a blog entry, the authors of the article are sharing a Google Docs and Spreadsheets document. We'll have to see if more people start sharing documents on the Web this way.

I'm Back and All Sorts of Entries are Forthcoming

I've finally returned to the office, so expect the return of all sorts of blog posts, including ones from ISPCON as well as my usual postings for web developers.

The trip and conference were pretty good, and I have to say that it's pretty good having the gentlemen pictured below as travelling companions:

Ken Schafer and Adam Eisner on the flight to ISPCON.
That's VP Marketing Ken Schafer on the left and
Iron Chef Product Marketing Adam Eisner on the right.