Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Ruby and the fly likes Question about the RoR anti patterns book Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Languages » Ruby
Bookmark "Question about the RoR anti patterns book" Watch "Question about the RoR anti patterns book" New topic
Author

Question about the RoR anti patterns book

Cathy Chlevner
Greenhorn

Joined: Aug 24, 2008
Posts: 13
Would you say that its a good book for RoR beginner?


"Laziness is nothing more than the habit of resting before you get tired." - Jules Renard
Katrina Owen
Sheriff

Joined: Nov 03, 2006
Posts: 1364
    
  17
I'm not the author, so take what I say with a grain of salt.

I don't think that beginners will be able to benefit from the book as much as the book deserves, so to speak.

Basically, if you have written a few rails applications, you will recognize several things:
1. You see the anti-pattern, and recognize something you did (along with the reasons you chose to do it)
2. You understand the discussion of why it's not really a good idea afterall
3. You get the benefit of a nice a-ha moment when you see how to solve the problem in a different way

If you don't have any experience with rails, there's a chance that much of the discussion will just be words.

Said another way: if you've made the mistakes, the pain you felt making the mistakes will make it that much more efficient to learn from the book.
Gabor Liptak
Greenhorn

Joined: Jul 14, 2009
Posts: 8
Were these antipatterns observed in the "wild"?
Katrina Owen
Sheriff

Joined: Nov 03, 2006
Posts: 1364
    
  17
You bet!

They are naturally occurring anti-patterns observed in their natural habitat. Fascinating creatures...
Sumit Bisht
Ranch Hand

Joined: Jul 02, 2008
Posts: 329

If you mean practically, then yes, these anti-patterns have been picked up from live/real world rails implementations that have gone wrong.
As RoR is maturing as a platform, we need to be aware of the common mistakes that occur in it (by java, php or .net developers) and have a roadmap for refactoring our existing codebase.
Tammer Saleh
author
Greenhorn

Joined: Mar 02, 2011
Posts: 11

Chad and I have had a lot of exposure to "interesting" rails applications as consultants (Thoughtbot, and independently). These AntiPatterns are definitely issues we've actually seen - no armchair philosophy coding, here
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Question about the RoR anti patterns book