Book review: Agile Web Development with Rails <i>by Dave Thomas and David Heinemeier Hansson, et al</i>

Book review: Agile Web Development with Rails by Dave Thomas and David Heinemeier Hansson, et al


The last time I looked at Ruby was many years ago, when the language was still relatively new. At that time it had yet to find wide acceptance when competing against the older and more established script-based languages such as Perl and Python. Although Ruby has since become more popular as a general purpose language, one of its most significant impacts has been within the web development space due to the development/deployment environment that is Ruby on Rails. Agile Web Development with Rails from The Pragmatic Programmers is a complete guide to getting the most of the Ruby on Rails system.

Agile Web Development with RailsAgile Web Development with Rails

One of the more interesting approaches of the book is that it is available both as a physical book and as a PDF which can be obtained directly from the Pragmatic Programmers website. Other books from the publisher are released in the same choice of formats and it’s clear when looking at their website that the publisher is a keen supporter of the Ruby language.

I was reading the PDF version of the title—while it is less convenient than a paper version, it has the bonus of being easy to navigate (the PDF has a comprehensive set of bookmarks and contents) and is, of course, searchable in a way that transcends the index. If you have both the book and the PDF, you can search and then look up the physical content. A quick “flick” through the book shows a comprehensive set of ideas and the examples and guides to back them up; the result is a book that is easy to follow but which includes enough detail to let you build your own Ruby on Rails applications when you’ve finished reading the book.

A quick “flick” through the book shows a comprehensive set of ideas and the examples and guides to back them up

The contents

The core content of the book is divided into four sections, followed by a comprehensive set of appendices. The book leaps in first with a good description of the fundamental issues surrounding Rails and then with an overview of the architecture of a typical web application and how this applies to the Rails environment. This is followed up by an installation guide and the “Instant Gratification” section giving you some very quick examples to try, just so that you can get a feel of the power of Ruby on Rails.

The meat of the book is then equally spread between the remaining two sections, Building an Application and The Rails Framework. The former is a step-by-step guide, in seven parts, detailing the process for building a simple store application using Ruby on Rails. There are sections dedicated to product maintenance, catalogue display and the creation and management of shopping carts, checkout and shipping.

The latter section, The Rails Framework, is a comprehensive guide to the entire Rails framework, from the basics of record management and the database interface through views, Web 2.0—which concentrates primarily on AJAX (Asynchronous JavaScript and XML)—and finally onto the deployment and scaling of your finished application.

The appendices provide a Ruby programming guide (in case you aren’t already familiar wth some of the Ruby basics), configuration options, source code and a handy resources guide.

Who’s this book for?

Purely and simply the book is targeted at web developers who want to develop dynamic web sites quickly and easily using Ruby on Rails. While existing programmers will be likely to get the most out of the book, you don’t need to be a programmer to follow it—that’s the benefit of the Ruby on Rails environment. However, due to the development and deployment style of Rails, not being an existing web programmer may mean a much steeper learning curve than you might expect. This isn’t a criticism of the book, just a factor of the Ruby on Rails environment.

Relevance to free software

Ruby, and Ruby on Rails, are both free software projects and you can obtain full source to both Ruby and Ruby on Rails.

Pros

The book takes an interesting approach to the development of web applications by providing both the “Instant Gratification” section to whet your appetite, followed by a complete guide to developing a feature-rich application using Ruby on Rails. This is all further backed up by the comprehensive guide to the Rails environment and technology. The combination of both step-by-step guides and reference material means this is probably the only title you will ever need on the topic.

Cons

I have a few minor criticisms of the book, but nothing that significantly detracts from the quality of the content. While I appreciate that it has become something of a standard to demonstrate the power of a web application by developing a web-based store, I am beginning to tire of seeing the same basic functionality redescribed in different languages or environments. We have been seeing these examples in books for the last 10 or 15 years, which, considering how the technology, power and expectations of the web have moved on, feels a little dated. Consistency of examples across environments is obviously an advantage if you are trying to make a comparison between environments, but it may have been more effective to show the true power of Ruby on Rails with a more exciting application.

Related to the example issue is the rather over-simplified view of Web v2.0. Web v2.0 is not just about using AJAX, although reading the appropriate section within this title would lead you to believe otherwise. Rails includes a built-in AJAX component, but AJAX is just one of the components that you can use as part of Web v2.0 application.

Neither of these criticisms should stop you purchasing this title, but both indicate a lost opportunity to make a more significant example application and demonstration of Web v2.0 technology in action.

Title Agile Web Development with Rails
Author Dave Thomas and David Heinemeier Hansson with Leon Breedt, Mike Clark, Thomas Fuchs, and Andreas Schwarz
Publisher The Pragmatic Programmer
ISBN 097669400X
Year 2005
Pages 554
CD included No
FS Oriented 10
Over all score 8

In short

Category: 
License: 

Author information

Martin Brown's picture

Biography

Martin “MC” Brown is a member of the documentation team at MySQL and freelance writer. He has worked with Microsoft as an Subject Matter Expert (SME), is a featured blogger for ComputerWorld, a founding member of AnswerSquad.com, Technical Director of Foodware.net and, and has written books on topics as diverse as Microsoft Certification, iMacs, and free software programming.

Most forwarded

Interview with Dave Mohyla, of DTIDATA

Dave Mohyla is the president and founder of dtidata.com, a hard drive recovery facility based in Tampa, Florida.

TM: Where are you based? What does your company do?
DTI Data recovery is based in South Pasadena, Florida which is a suburb of Tampa. We have been here for over 10 years. We operate a bio-metrically secured class 100 clean room where we perform hard drive recovery on all types of hard disks, from laptop hard drives to multi drive RAID systems.

Anybody up to writing good directory software?

Since the very beginning, directories (of any kind) have had a very central role in the internet. (I have recently grown fond of Free Web Directory. Even Slashdot can be considered a directory: a collection of great news and invaluable user-generated comments. As far as software is concerned, doing a quick search on Google about software directories will return the free (as in freedom) software directories like Savannah, SourceForge, Freshmeat and so on, followed by shareware and freeware sites such as FileBuzz, PCWin Download Center and All Freeware (great if you're looking for shareware and freeware, but definitely less comprehensive than their free-as-in-freedom counterparts).

Interview with Mark Shuttleworth

Mark Shuttleworth is the founder of Thawte, the first Certification Authority to sell public SSL certificates. After selling Thawte to Verisign, Mark moved on to training as an astronaut in Russia and visiting space. Once he got back he founded Ubuntu, the leading GNU/Linux distribution. He agreed on releasing a quick interview to Free Software Magazine.

Is better education the key to finding better software?

I read David Jonathon's article Anybody Up To Writing Good Directory Software? the other day, which got me thinking about software directories in general. As David mentioned, many of the software directories one finds when doing a quick google search are free as in beer, not as in freedom. But what interests me is the software directories that already exist, providing a combination of both free as in beer software, and open source software. Sites such as Freeware Downloads and Shareware Download don't advertise themselves as providing free as in liberty software, but each of them have a good selection of open source software available... if you know where to look.

Most emailed

Free Open Document label templates

If you’ve ever spent hours at work doing mailings, cursed your printer for printing outside the lines on your labels, or moaned “There has got to be a better way to do this,” here’s the solution you’ve been looking for. Working smarter, not harder! Worldlabel.com, a manufacture of labels offers Open Office / Libre Office labels templates for downloading in ODF format which will save you time, effort, and (if you want) make really cool-looking labels

Creating a user-centric site in Drupal

A little while ago, while talking in the #drupal mailing list, I showed my latest creation to one of the core developers there. His reaction was "Wow, I am always surprised what people use Drupal for". His surprise is somehow justified: I did create a site for a bunch of entertainers in Perth, a company set to use Drupal to take over the world with Entertainers.Biz.

Update: since writing this article, I have updated the system so that the whole booking process happens online. I will update the article accordingly!

So, why, why do people and companies develop free software?

More and more people are discovering free software. Many people only do so after weeks, or even months, of using it. I wonder, for example, how many Firefox users actually know how free Firefox really is—many of them realise that you can get it for free, but find it hard to believe that anybody can modify it and even redistribute it legally.

When the discovery is made, the first instinct is to ask: why do they do it? Programming is hard work. Even though most (if not all) programmers are driven by their higher-than-normal IQs and their amazing passion for solving problems, it’s still hard to understand why so many of them would donate so much of their time to creating something that they can’t really show off to anybody but their colleagues or geek friends.

Sure, anybody can buy laptops, and just program. No need to get a full-on lab or spend thousands of dollars in equipment. But... is that the full story?

Fun articles

Santa Claus - the most successful open source project

It dawned on me the other day, as I was shopping for the dozens of gifts it seems I have to buy every December, that Santa Claus is the most successful open source project in history. (Bridget @ Illiterarty would agree with that). Santa Claus is essentially a marketing development that is embodied by everyone who stuffs a sock, gives a gift, hosts a dinner or wishes Merry Christmas over the holiday season.

Most emailed

Editorial

When I first started thinking about Free Software Magazine, I was feeling enthusiastic about the dream. I had Dave, Gianluca, and Alan willing to help me, I had established members of the free software community willing to help me out, I had writers volunteering their time and energy for free, and I had a generous offer from OpenHosting for servers, all before I'd proved myself. There was a sense of excitement in the air, and I thought maybe, just maybe, I could make this work.

Free Software Magazine uses Apollo project management software and CRM for its everyday activities!