24 of 25 people found the following review helpful
5.0 out of 5 stars
Everything you want to know about RoR....but were afraid to ask, Mar 7 2008
By B. Randall - Published on Amazon.com
This review is from: Professional Ruby on Rails (Paperback)
First thing I'd like to point out is this book is up to date with Rails 2.0.2 (released 12/07) which is important as many things have changed like script/generate scaffold, in-place-editing and auto-complete have been deprecated, etc. Essentially, enough to baffle and frustrate a relative newcomer unaware of these changes who is trying to get started on 2.0.2 with older tutorials.
This book absolutely delivers on its promise to "fill the void" between beginner books and recipe/cookbook style books. It is the one-stop resource I've been seeking since Rails hit the streets.
I bought this book hesitantly as there were no reviews yet. I've purchased at least a dozen books on RoR over the past 2-years, some good, some average, some not so good. I can honestly say this is the best coverage of RoR I've read - without hesitation! I've only written one other review here at Amazon which was for David Black's "Ruby for Rails" which was a great book a few years ago if you didn't know Ruby programming.
I own AWDR I & II, Pick Axe, Recipes I&II, Cookbook etc. etc. Good books in their own right but I was still left not fully understanding key elements of building a solid, well tested enterprise ready site. This resulted in me making a ton of mistakes leading to endless hours of Googling to find others who had encountered the same problems, finding random tutorials, picking up a tip here, a tip there, etc. It was pure scattershot!
My application design was not cohesive and lacked the fundamental building blocks and safeguards necessary for continued growth. For lack of a better analogy, the apps I've built with Rails have been nothing more than patchwork quilts temporarily held together with rapidly disintegrating stitches. Enter "Professional Ruby on Rails."
I received "Professional Ruby on Rails" the other night and thought I'd spend an hour or two skimming chapters and hopefully picking up a couple tips. 7-hours later after fully reading through everything in several chapters I was stunned at how many things I was doing wrong. Noel has done an exceptional job of covering key details that are typically glossed over or go untouched in other books and tutorials.
For example, how many tutorials have you seen where you get step-by-step intimate details on how to generate the models/controllers/scaffolds, run migrations, set up your associations, validations create a snappy View with some nifty AJAX....and then bang......the tutorial ends with "Now write your tests and check it into SVN". Hmmmmmm? Sounds pretty easy, okay...done.
Building the AWDR bookstore was reasonably covered but testing and fixtures were an afterthought. There was a chapter dedicated to testing but was general coverage and did not comply with Rails best practices of test driven development. This book fills that void wonderfully.
In the interest of full disclosure, I'm a hobbyist and don't make my living with web development. I'd rate myself with low-level intermediate Rails skills having built 3 or 4 "personal" projects, trivial in every sense of the word. In early 2007 I had attempted to start a non-trivial project, my "Big Idea". 6-months of agony later, I became so frustrated and lost, I walked away from Rails entirely. The biggest reason for my frustration, also my biggest weakness, was testing and it came back to bite me in the arse on more than a zillion occasions. In short, my app was hopelessly broken and the only solution was to scrap it and start over. Not fun!
Having spent a few nights with the examples and advice in Professional Ruby on Rails, I've come to realize I was going about testing in a completely bass ackwards way. I was also not using SVN properly and missing opportunities left and right to refactor code that is now, in just a few short days of reading this book, so blatantly obvious. I also didn't realize how trivial it was to build your own rake tasks to automate tedious chores I had previously performed manually. And I'm really only halfway through the book!
In short, no Rails book or resource I've read, and I've read a lot, has come close to teaching me exactly when, why, what, where and how to build a real-world application, step by step, like Professional Ruby on Rails. I give it my highest recommendation and feel confident that, thanks to Professional Ruby on Rails, my "Big Idea" now has a chance!
3 of 3 people found the following review helpful
5.0 out of 5 stars
Excellent Book- For People Who Know Rails, Nov 6 2008
By Samuel Smith "Sammy" - Published on Amazon.com
This review is from: Professional Ruby on Rails (Paperback)
This is a fantastic book specifically geared at people who know Ruby and Rails. It says this in the opening chapter, and infers this in the title- "Professional Rails". So it's funny to see a review here complaining that you would be lost if you didn't Ruby and Rails.
And, as the other reviewer mentioned, it actually writes the tests! Better yet, it often writes the test first. And thank god there wasn't another "intro to ruby/intro to rails/installing rails" chapter at the beginning. Hell, it doesn't even say what a generator and pretty much starts "rails -d mysql soupsonline" with no explanation. This is fantastic! I was so excited.
Most of the first chapter discusses REST and TDD (test driven development) laying a foundation for more advanced rails applications and development techniques. As REST is relatively new to Rails, and a more advanced topic, I thought it was a great start. Routes are on page 8, and Ajax is already in the app by the end of chapter 1 (page 34).
Chapter 2 is using subversion, which at first I was leary of, but then quite accepting. Subversion (and now Git, which unfortunately wasn't big yet when the book was written) is a critical part of the advanced rails development workflow and this chapter is very rails centric in exposing best practices and tips.
I did a lot rails programming back in 2005, and recently picked it up again. This books was by far the most relevant for me, offering high value for time invested and effectively covering newer Rails developments (migrations, ajax support, capistrano, mongrel, etc.).
Also exciting was the fact that this was one of 10 different ruby and/or rails books at the bookstore.
If you are an experienced developer moving to Ruby and Rails, I'd also recommend this book. Take this and the Flannagan/Matz book and you'll be flying in no time.
If you are just moving to Rails 2, this book is perfect as well.
An if you've been working on Rails 2 and want to move to the next level, I think this is also a great book.
As an aside, I generally love the Wrox books. They are uniquely positioned to experienced developers and written by people who are scary in their expertise. They are also written in very clear prose- advanced material without the complex language of experts.
Highly recommended.