As Rails consultants, we’ve seen a lot of Rails applications. The majority of the AntiPatterns described in this book are directly extracted from real-world applications. We hope that by formalizing their descriptions here, we can present you with the tools you’ll need to identify these AntiPatterns in your own code, understand their causes, and be able to refactor yourself out of the broken patterns.

What Are AntiPatterns?

AntiPatterns are common approaches to recurring problems that ultimately prove to be ineffective.

The term AntiPatterns was coined in 1995 by Andrew Koenig, inspired by Gang of Four’s book Design Patterns, which developed the concept of design patterns in the software field. The term was widely popularized three ...

Get Rails™ AntiPatterns: Best Practice Ruby on Rails™ Refactoring now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.