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 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.
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 |
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.
Here it goes (Score:1, Redundant)
Re: (Score:2)
Mack Framework (Score:1)
Re: (Score:1)
621 pages? (Score:2, Funny)
Practical Rails Projects (Score:2, Funny)
- fencing material
- structural support for a building
I converted our corporate site from PHP to RoR (Score:2, Funny)
Re: (Score:3, Interesting)
You should have used modrails [modrails.com]. Suddenly, Rails deployment is as easy as PHP deployment. I no longer hesitate to put up little toy apps [infoether.com] since now I don't have to worry about mongrel clusters and init scripts and all that rot. Great stuff!
Huh? (Score:2)
Re: (Score:2)
Because I want them to start if the machine gets restarted.
And? (Score:2)
So you worked yourself out of a job, eh? (Score:2)
Objective? (Score:5, Insightful)
I would be a bit worried that this review might not totally objective or unbiased.
Re: (Score:3, Funny)
Upon seeing the headline "Mother loves, praises Child", Harold interjected "How do we know we can trust her opinion?"
Re: (Score:3, Informative)
Informative? (Score:2)
Re:Objective? (Score:5, Informative)
Re: (Score:2)
[OT] Re:Objective? (Score:2)
I agree with you re: the biasing tendencies/constraints inherently present in human physiology, as well human (group) psychology.
But of _course_ there's an objective viewpoint.
It's the viewpoint which accurately reflects all things which can be accurately measured.
Most things which seem to be subjectively reported are mainly so because no metric exists or is being used which can measure the objectivity.
Math, most glaring of all, is objective. No one can h
Re: (Score:1)
Re: (Score:2)
Already out of date? (Score:5, Informative)
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)
Re: (Score:1)
Re:Already out of date? (Score:4, Insightful)
Disclaimer: with this edition, I was recruited to be one of the authors of this book.
Re: (Score:2)
Rails docs could use the help (Score:3, Interesting)
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)
Re: (Score:1)
However, these code examples do not belong in the documentation. The documentation is where I go to figure out what I should expect when I pass a certain attribute to a method. Learning ho
Rails Project (Score:2, Informative)
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.
RailsSpace seconded (Score:2)
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
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
Re: (Score:2)
> 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.
Newer book for intermediate-advanced developers (Score:1, Informative)
Wheres the projectile?? (Score:2)
My second thought was, why is /. covering trains?
THEN I remembered that Ruby decided to name their framework with that term...
tm
Please keep up. (Score:2)
Re: (Score:2)
Re: (Score:1)
Which is silly because Rails scales exactly the same way every shared nothing web architecture does. If you're application won't scale in Rails, it won't scale if you rewrote it in PHP, or even C for that matter.
Re: (Score:2)
Most of the people complaining about scalability are complaining because it does NOT (contrary to what the other poster wrote) scale the same way others do. It takes some learning to know how to scale Rails applications properly. If you try to do it the same way you scale applications running under Apache, for example, you probably won't get very far.
In part that is because Rails is (still but maybe not for long) sin
Re: (Score:1)
I disagree. Sure, the configuration may be different, but ultimately, in simplistic terms, no matter what your framework/language you just keep adding processes and servers until you've met your load requirements. There is nothing in Rails that forces you to keep your application on a single server, for example.
NONSENSE (Score:2)
Now, allowing for the possibility that you meant something other than what I thought, I will state that Apache works best with multiple-threading applications. You can
Re: (Score:3, Interesting)
> more and more people complain about scalability.
Remember, languages (and frameworks) don't scale, architectures do.
> There have been numerous companies that have abandoned ship.
From where I stand there are lots of companies getting onboard, and modrails [modrails.com] is a sea change (for the better!) in the Rails deployment story.
Re: (Score:2)
Also, historically, Rails apps running under Apache have not been very fast or efficient.
So this is one to which I say, "I'll believe it when I see it, not before."
Re: (Score:2)
Yup, that's fair enough. But I hope that I've opened port ranges and set up init scripts and monit.conf files and mongrel_cluster.yml and proxy_balancer settings for the last time. No more need to worry about a dozen people doing slow file uploads and locking all the Mongrel processes... all those pieces of the puzzle just go away. Good times.
Since when (Score:2)
Sure, okay, it fits you just fine. But I doubt it would fit me, or a lot of others I know.
Practical Rails Projects? (Score:1)
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!
Ruby rocks, rails, meh (Score:2)
Ruby, on the other hand, rocks out loud.
Re: (Score:1)
Then you probably do not "get" it. (Score:2)
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.
Re: (Score:2)
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
Re: (Score:1)