Slashdot Mirror


Practical Rails Projects

Sean Cribbs writes "There are many beginning and advanced Ruby on Rails books available, from the authoritative Agile Web Development with Rails to the cookbook-style Rails Recipes. However, healthy guidance for intermediate-level developers is lacking at best. Ironically, this is the most crucial stage in the process of becoming proficient with Rails because one must begin to learn why, not just how. Eldon Alameda's Practical Rails Projects effectively fills that gap. I know Alameda from our local Ruby User Group and spoke with him frequently while he wrote this book. His expertise with Rails definitely shines through in the hefty 621-page volume." Keep reading for the rest of Sean's review. Practical Rails Projects author Eldon Alameda pages 621 publisher Apress rating 8/10 reviewer Sean Cribbs ISBN 978-1-59059-781-1 summary A strong book for the intermediate Rails developer Practical Rails Projects has a unique and effective approach. Instead of spoon-feeding contrived code snippets, Alameda teaches by example, leading the reader step-by-step through the design, creation, enhancement, and analysis of several full-fledged projects. Each project introduces new techniques to the intermediate Rails developer carefully and with plenty of explanation — from caching to generating graphs to RESTful application design and much more. Rather than regurgitating documentation that is occasionally unclear or misleading, each application begins with a clean Rails project and is built up step-by-step with detailed commentary on how and why each step is taken. Alameda's format reflects the reality that real-life projects never have a straight development path; at each step one must make tough decisions, watch for pitfalls and take risks. There are no leaps-of-faith or "just trust me" moments, everything is explained. In the final chapter of each project, Alameda also suggests ways that the project could be improved and how to apply the newly learned techniques to previous projects in the book.

The text is clear and uncomplicated with an approachable style. Projects even makes Rails' least fun framework, ActionWebService (which helps you create SOAP and XML-RPC services), easy to understand. While there are some glaring proofing mistakes, such as "Ruby" uncapitalized and some malformed URLs to external resources, the code snippets are practically error-free and all source and binary resources are available via the Apress website.

One controversial decision made by Alameda was to use the ExtJS Javascript library extensively in one project to build an administration interface for a legacy site. ExtJS is a powerful high-level library that simplifies the creation of desktop-like interfaces in the web browser. Instead of spending a lot of time hand-crafting HTML/ERb templates and CSS, Alameda quickly creates an interface in ExtJS and uses Rails to generate XML and JSON that drives the almost entirely client-side application. While some may find this outside the spectrum of what should be in a Rails book, many developers are now creating their interfaces in Flex, SilverLight, and other client-side technologies. With the recent official release of ActiveResource, I believe we will see more web-service-focused Rails applications as time goes on. Alameda's choice is also practical; with a small number of users having access to the interface, he can place greater requirements on them in order to deliver the application more quickly.

Overall, I believe Practical Rails Projects is a strong book for the intermediate Rails developer. It provides an introduction to more advanced concepts of the framework without being preachy or obtuse. It lacks any discussion of test- or behavior-driven development with Rails, but the breadth and depth of the topics it covers makes up for this weakness. Like any book that covers a rapidly-changing open-source project like Ruby on Rails, Projects will date quickly, but in the near-term it should be of great help to developers looking to gain constructive experience.

You can purchase Practical Rails Projects from amazon.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

8 of 65 comments (clear)

  1. Objective? by Harold+Halloway · · Score: 4, Insightful

    "I know Alameda from our local Ruby User Group and spoke with him frequently while he wrote this book."

    I would be a bit worried that this review might not totally objective or unbiased.

    1. Re:Objective? by maxume · · Score: 3, Funny

      Is there somewhere where it promises to be objective and unbiased, or is there some text disclosing the reviewer's connection to the author?

      Upon seeing the headline "Mother loves, praises Child", Harold interjected "How do we know we can trust her opinion?"

      --
      Nerd rage is the funniest rage.
    2. Re:Objective? by Sean+Cribbs · · Score: 5, Informative

      I did my best to review the book honestly. All I can give you is my word.

  2. Already out of date? by khendron · · Score: 5, Informative

    This book was published in October, 2007, and Rails 2.0 was released December, 2007. According to the description on Amazon, only the last example deals with 2.0 at all.

    Since there were some rather significant changes introduced in Rails 2.0, it is likely that many of the examples will no longer work as described. I know that is the case with current version Agile Web Development with Rails.

    --
    Life is like a web application. Sometime you need cookies just to get by.
    1. Re:Already out of date? by Sean+Cribbs · · Score: 3, Informative

      Such is the pace of a popular framework like Rails. I submitted this review to /. over 2 months ago, and yet another release of Rails is imminent. A paper-based publishing process just can't keep up.

    2. Re:Already out of date? by Sam+Ruby · · Score: 3, Insightful

      it is likely that many of the examples will no longer work as described. I know that is the case with current version Agile Web Development with Rails.
      I guess that would depend on your definition of current. There is a new version in beta that has already been largely updated, and continues to actively follow Rails development.

      Disclaimer: with this edition, I was recruited to be one of the authors of this book.
      --
      - Sam Ruby
  3. Rails docs could use the help by ClientNine · · Score: 3, Interesting

    I've found that Rails documentation falls into two categorys: (1) The annoyingly pedantic tutorial which falls apart if anything whatsoever goes wrong on your system, since the tutorial lacks any depth; and (2) Advanced docs that are moderately impenetrable to people not already very familiar with the relevant technologies.

    I'm an experienced Perl and C guy who just wants to find a better way than CGI::Ajax to build slick web applications, but I found that I spent more time being annoyed with the documentation than actually learning. Intermediate indeed; Rails needs this.

    1. Re:Rails docs could use the help by mini+me · · Score: 3, Interesting

      The documentation is fine. There are just no good code examples out there for people to learn from. That is what Rails needs.