Meaningless Drivel is fun!*
The moose likes Ruby and the fly likes Is Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Languages » Ruby
Bookmark "Is "Ruby Best Practices" like design patterns in Java?" Watch "Is "Ruby Best Practices" like design patterns in Java?" New topic
Author

Is "Ruby Best Practices" like design patterns in Java?

Rogerio Kioshi
Ranch Hand

Joined: Apr 12, 2005
Posts: 689
Hi,

I'd like to know if "Ruby Best Practices" is like the design patterns we have for JEE.
Does it show the patterns and their sample code?

Thank you.


SCEA 5 (part 1), SCBCD, SCWCD, SCJP, CLP, CLS
Gregory Brown
author
Greenhorn

Joined: Jul 18, 2009
Posts: 14
Hi Rogerio,

Actually, RBP is not a patterns book at all. It takes a more "on the ground" approach to improving your Ruby skills by walking through real problems. The general idea was to identify some areas that folks struggle with in Ruby and show how experienced Rubyists might attack problems in that area. So it reads more like a series of code reviews than an abstracted set of generalized patterns. In my experience, this is a more practical way to approach Ruby as many patterns from Java can be a bit overkill when ported to Ruby. That having been said, many of them do carry over, and for that, I'd like to recommend Russ Olsen's "Design Patterns in Ruby". I've just started reading that book, but I've heard great things about it.

Have a look at the book's sample chapter to get a feel for the format, and feel free to get back to me if you have any more questions

-greg
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is "Ruby Best Practices" like design patterns in Java?