File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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

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

Rogerio Kioshi
Ranch Hand

Joined: Apr 12, 2005
Posts: 690

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.

Gregory Brown

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

I agree. Here's the link:
subject: Is "Ruby Best Practices" like design patterns in Java?
It's not a secret anymore!