Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
Book Reviews Books Media

Practical Rails Projects 65

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.
This discussion has been archived. No new comments can be posted.

Practical Rails Projects

Comments Filter:
  • Here it goes (Score:1, Redundant)

    by Joseph1337 ( 1146047 )
    Bad scaling/'right for the right job' flames in: 3.. 2.. 1..
  • 621 pages? (Score:2, Funny)

    by Anonymous Coward
    Does it come with its own set of rails and a freight train to transport the book around?
  • - constructing railroad tracks
    - fencing material
    - structural support for a building
  • by Anonymous Coward
    and all I got was a pinkslip
  • Objective? (Score:5, Insightful)

    by Harold Halloway ( 1047486 ) on Wednesday May 21, 2008 @03:44PM (#23496630)
    "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.
    • Re: (Score:3, Funny)

      by maxume ( 22995 )
      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?"
    • Re: (Score:3, Informative)

      by Microsift ( 223381 )
      Dude, he only gave him an 8/10!
    • Re:Objective? (Score:5, Informative)

      by Sean Cribbs ( 927082 ) on Wednesday May 21, 2008 @04:13PM (#23497012) Homepage
      I did my best to review the book honestly. All I can give you is my word.
  • Already out of date? (Score:5, Informative)

    by khendron ( 225184 ) on Wednesday May 21, 2008 @03:55PM (#23496786) Homepage
    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.
    • Re: (Score:3, Informative)

      by Sean Cribbs ( 927082 )
      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.
      • by nem75 ( 952737 )

        A paper-based publishing process just can't keep up.
        In that case one might argue the sense in reading said publishings.
    • by Sam Ruby ( 8995 ) on Wednesday May 21, 2008 @04:52PM (#23497478) Homepage

      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 [pragprog.com] 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.
    • I was thinking the same thing, in particular ActionWebService has been replaced by ActiveResource, and much of the controller/routing code seems to cater to REST URLs.
  • by ClientNine ( 1261974 ) on Wednesday May 21, 2008 @04:07PM (#23496946)
    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.
    • Re: (Score:3, Interesting)

      by mini me ( 132455 )
      The documentation is fine. There are just no good code examples out there for people to learn from. That is what Rails needs.
  • Rails Project (Score:2, Informative)

    by slashflood ( 697891 )
    Another practical Rails book that I can recommend is RailsSpace [railsspace.com].
    Shameless plug: my latest Rails project [howflow.com]. To give you an idea how powerful Rails is, HowFlow has been developed in exaclty five days from scratch. It is currently in private beta, but I'm handing out invitations for those who send an email to flow at howflow.com.
    • I will second RailsSpace.

      I tried learning rails from Agile Web Development with Rails first, and I found that AWDwR has a huge deficiency: it frequently fails to explain the fundamental Ruby concepts and structures that it's using. (For example, I remember typing in the :symbol syntax for several chapters without having any idea what it actually was.).

      RailsSpace, OTOH, does a really good job of stopping to explain each new concept, tool, or syntax in a sidebar; as a coder who didn't already know Ruby I fou
      • > it frequently fails to explain the fundamental
        > Ruby concepts and structures that it's using.

        David Black's Ruby For Rails [manning.com] is a great book for this; David explains the way Rails leverages all sorts of Ruby techniques to do what it does. Another good one is Advanced Rails [oreilly.com], which has an excellent section on the changes that Rails makes to various Ruby core classes - e.g., Symbol.to_proc.
  • by Anonymous Coward
    The Art of Rails [amazon.com] covers intermediate Rails topics quite nicely, and just came out so it had the chance to cover some of the Rails 2.0 developments (particularly related to nested routes and REST services). I've been reading through a copy and have found it really helpful so far -- especially the three chapters on advanced Ruby development patterns.
  • Anyone else read the title wondering why "gun" was left out?

    My second thought was, why is /. covering trains?

    THEN I remembered that Ruby decided to name their framework with that term...

    tm

  • You can buy this book for cheap in electronic format. Newegg has them [newegg.com], 100 copies on DVD for 24.99. and free three day shipping.

    I keed, I keed. Relax! Hey you, RoR fans with the mod points! Put those back down!

  • After playing around with ruby on rails, I just didn't find that it was all that useful. Mostly I found it was just a painful exercise in learning exotic ways of doing things that I already knew how to do correctly. SQL, for example. Don't get me wrong, I see some merit in the rails way of doing things, but overall rails just seems like two steps back for anyone savvy enough to comprehend ruby in the first place.
    Ruby, on the other hand, rocks out loud.
    • by pmee ( 1250276 ) *
      Convention over configuration and ActiveRecord are hardly exotic. I must admit I loved it when I discovered the Dynamic finders.
    • I did not "get" Rails at first either. But now that I am familiar with it, I can do things in moments that it used to take half a day programming to do.

      True, there is strong incentive to "go with the flow", and learn the "Rails Way" to do things... but most of the time that actually helps rather than hinders.
    • by Pengo ( 28814 )

      I bounced back and forth like this for a while. I'm a 10 year Java vet, it's served me well in that the Java+Linux server programing duopoly has allowed me to live in some cool place, and allowed my family a great lifestyle.

      I remember facing the same question back when, "should I keep forging ahead with PHP or give this Java thing a try". Looking back, thank god I gave Java a fair shake. Even though my first major project could of been done probably a lot easier in PHP, it was worth it's time in gold, bi
    • by mini me ( 132455 )
      ActiveRecord doesn't do SQL "correctly" for very good reasons. If you have a reason why you need to use SQL like it was designed, you probably shouldn't be using ActiveRecord at all. However, that does not preclude you from using the rest of the Rails framework.

Get hold of portable property. -- Charles Dickens, "Great Expectations"

Working...