
Rails antipatterns
by Chad Pytel · first published 2009
7mentions
6recommended by
6HN commenters
2011–2015first – last mentioned
100% recommend
Why HN recommends it
Focuses on refactoring common Rails code smells and MVC misuse, showing better structures for models, views and controllers; useful for working Rails developers who want to improve existing applications.
Summarised by Claude from recommending comments
Affiliate links. As an Amazon Associate I earn from qualifying purchases.

…this further couples all of the components because it actually increases the reliance on each other for them to be useful. MVC isn't dead. There is a good chance you are using it wrong. I highly suggest Rails Antipatterns. While it is specific to Rails, it works for MVC in general. http://www.amazon.com/Rails-AntiPatterns-Refactoring-Addison... edit: spelling
on “MVC is dead, it's time to MOVE on” ↗The book Rails AntiPatterns addresses many: http://www.amazon.com/Rails-AntiPatterns-Refactoring-Addison...
on “Ask HN: What are the stupid things Rails developers do?” ↗http://www.amazon.com/Rails-AntiPatterns-Refactoring-Addison... http://www.amazon.com/Crafting-Rails-Applications-Developmen...
on “Looking for best practices on architecting Rails applications.” ↗Read this: http://www.amazon.com/Rails-AntiPatterns-Refactoring-Addison... Easiest mistake in large rails apps is to let your controllers get too thick...
on “Hitting the ground running: A Python programmer builds a Rails 3.1 app in a day” ↗check http://www.amazon.com/Rails-AntiPatterns-Refactoring-Addison... other than that, 1. write tests 2. good community. for some measure of good
on “Will Rails be the new PHP” ↗…--Beginning Rails 3 by Carneiro and Barazi is excellent --The Rails 3 Way by Fernandez is difficult if not expanding --Service-Oriented Design with Ruby and Rails by Dix is impressive and thorough --Rails Antipatterns is a great look at refactoring Ruby --Refactoring by Fields, Harview, Fowler, Beck is good. --Metaprogramming in ruby by Perrotta is exciting. These are specifically Rails 3 (or touch on it). There…
on “Ask HN: Rails 3 book recommendations?” ↗…probably would not use in practice (storing views in the database and rendering them!), but they serve to elucidate the operation of the entire view stack. Really good stuff. Two other good books are Rails Antipatterns[2] and Objects on Rails[3]. Neither of them has been updated in a long time, but the general principles will still hold. The former is more practical, the latter more theoretical; precscriptive and…
on “Why Learning to Code Is So Damn Hard” ↗