Ruby for Rails: Ruby Techniques for Rails Developers

ClanBrandon Books
view more info on this item
click here for more details, find new or used items

David Black

Our price £19.19 (£31.99)
New from £14.22
Used from £9.99

Pages: 532 (Paperback)

ISBN: 1932394699

Pub: Manning Publications

Pub date: 2006-05-11

Amazon.co.uk Sales Rank: 200020

Check for 3rd party sellers (new/used)

Reader Reviews:


4/5 stars

Teaches Ruby using Rails (0/0 people found this helpful)

Approaching this book, I wasn't quite sure where the emphasis lay, and who this was aimed at. To be clear then, I recommend this book to an intermediate Ruby programmer, who is interested in using examples from Rails to help cement their learning. It would also probably help to have the vaguest idea of what Rails is, and the sorts of web apps it's useful for. If you're an existing Rails developer, this is a great way to get a better understanding of what's going on, but it's not a tutorial on Rails for a complete newbie, nor does it provide advanced Rails practices.

Unlike many programming books, which focus on procedural programming before building up to classes, RfR is admirably object oriented in focus from the word go. It's quite impressive that conditionals aren't introduced until about 200 pages in. Also notable is the chapter on metaprogramming, which is very good. If you felt a bit short-changed by the coverage of this subject in The Pickaxe, this is much better.

Material on Rails top and tail the book: the first part introduces Rails by building a simple web app, and the final chapters rejig it with enhanced models, views and controllers, based on the Ruby material in the middle.

In short, this is more of a Ruby book than a Rails book, and I was very happy with that. This is well worth getting even if you have no interest in web apps.

3/5 stars

A useful tutorial, but not wholly great. (8/8 people found this helpful)

I'm an experienced Perl and Python programmer and this is the first book on Ruby + Rails that I've picked up. I have to say that I found part 1 of the book (the first 90 of 475 pages) excellent, demonstrating clearly the amount of coding that is avoided by using the Rails framework.

But from then on until part 4 (near to the end) it felt like wading through increasingly thickening treacle with the book making very slow yet unthorough progress through the more common general purpose programming features with frequently repeated bad examples and a awful lot of superfluous "chit-chat"; I can only assume that the author had a hard time fleshing out the main contents to meet the required page count! Here's one of many possible examples from the text that illustrates the point:

"From now on, when you see this notation (in this book or elsewhere), you'll know what it means. (The second example (class method reference using a dot) looks the same as a call to the method, but you'll know from the context whether it's a method call or a reference to a method in a discussion.) // Objects come from classes. If classes are objects, that implies that they, too, come from a class. A class can be created with a call to the class method new of its class. // And what is the class of a class? It's a class called Class. Yes, there's a bit of "Who's on first?" here, but the concept is by no means impenetrable..."

Thankfully, the Rails focused contents toward the end of the book goes a long way towards redeeming the dire middle, and make for quite stimulating reading.

As a Ruby tutorial it is poor. As a Ruby or Rails reference it is also quite poor. But as a Rails tutorial it shines.

4/5 stars

A must buy (0/2 people found this helpful)

The book Ruby for Rails closes the gap between Ruby as a language and Rails as a framework. Each chapter deepens your Ruby knowledge and shows you how it connects to Rails. Every Ruby concept is clearly explained. It is a must .

4/5 stars

Good introduction (2/3 people found this helpful)

This is probably the best starting point for anyone considering using Ruby on Rails. David Black introduces both the language and the framework, starting from the beginning. At times his approach can seem pedantic (for example the section "introducing object-oriented programming' on page 97). However, it's probably a good idea for even experienced programmers to read it all, as Ruby differs in some subtle but fundamental respects from other more familiar languages (a class IS an object; objects don't "have methods" they "respond to messages", operators are just "syntactic sugar" for messages, etc.).

Both Ruby (the language) and Rails (the framework) are substantial things, and this book does not cover either in detail. There's no mention of testing, for example, nor of real world deployment, nor Rake nor RDoc. You'll need to spend a lot of time with the online documentation [...] and or get the big books (0974514055 and 097669400X).

There are too many misprints. Not a lot, but each one is annoying. The actual Ruby text is error-free, as it was pasted from a live irb (interactive ruby) session, but occasionally the explanatory text does not match the code. The index is OK but not brilliant, and I kept finding things missing ("flatten", for example, or "//" or "|"). The other annoyance is the author's tendency to keep telling us that, to use Rails, you really OUGHT to learn Ruby. That would be fine in the preface, but he's still preaching the message in later chapters. We don't need to be told; that's why we bought the book! But these are all relatively minor flaws, and I can certainly recommend the book. It offers a solid grounding on which to build your expertise.

5/5 stars

Have Your Cake .... And Eat It! (5/5 people found this helpful)

This book is excellent. It helps to teach not only rails but the ruby language that underpins it. Rather than treating them as two separate topics, the book focuses on showing how ruby and rails work together (rails is written in ruby after all...) This helps you to learn the ruby language with a focus on rails development.

It is written in a tutorial format and David Black has a very authorative writing style that is a little dry (i.e. doesn't have any of those silly 'jokes' that many tech authors use).

It starts with the basics of installing ruby and rails and walks you through a small rails application before going into the nuts and bolts of the ruby language. Most of the ruby parts are centered around rails with lots of references to how rails works in the background. This helps to give you a good grounding in Ruby but also helps you to understand rails in depth.

Be aware that it is not a reference book and you would probably be better with Agile Web Development With Rails by the two Davids for Rails reference and The Ruby Pickaxe book by the one David for Ruby reference. Learn to Program by Chris Pine is also worth reading if you have little programming experience and would like to learn Ruby from the start.

I would highly recommend this book to anybody who is starting to develop in rails.

Similar Products

Agile Web Development with Rails (Pragmatic Programmers)

Rails Recipes (Pragmatic Programmers)

Programming Ruby: The Pragmatic Programmer's Guide, Second Edition: The Pragmatic Programmers' Guide

Ruby Cookbook (Cookbooks (O'Reilly))

The Ruby Way: Solutions and Techniques in Ruby Programming (Addison-Wesley Professional Ruby)

Categories

Amazon.co.uk places this book into the following categories:

Books -> Subjects -> Computing & Internet -> General
Books -> Subjects -> Computing & Internet -> Programming -> Languages -> Ruby
Books -> Subjects -> Computing & Internet -> Programming -> General AAS
Books -> Subjects -> Computing & Internet -> Programming -> Languages & Tools -> General AAS
Books -> Subjects -> Computing & Internet -> Digital Lifestyle -> Online Shopping -> Amazon
Books -> Subjects -> Computing & Internet -> Digital Lifestyle -> Online Shopping -> General AAS
Books -> Subjects -> Computing & Internet -> General AAS
Books -> Subjects -> Computing & Internet -> Web Development -> General AAS
Books -> Subjects -> Computing & Internet -> Web Development -> Web Design -> General AAS
Books -> Subjects -> Scientific, Technical & Medical -> Engineering -> General AAS
Books -> Refinements -> Language (feature_browse-bin) -> English
Books -> Refinements -> Age (feature_two_browse-bin)
Books -> Refinements -> Format (binding_browse-bin) -> Paperback
Books -> Refinements -> Condition (condition-type)

 

ClanBrandon Books | Prague airport transfer | Dreamweaver | Short Term Missions | English Teacher Jobs in the Czech Republic
Czech Republic | Operation Mobilisation | Czech Republic Map