An anti-pattern is a solution to a class of problem that although may be commonly used, is likely to be ineffective or counterproductive. [1] [2] The term, coined in 1995 by Andrew Koenig, was inspired by the book Design Patterns which highlights software development design patterns that its authors consider to be reliable and effective. [3] A paper in 1996 presented by Michael Ackroyd at the Object World West Conference described anti-patterns. [3] It was, however, the 1998 book AntiPatterns that both popularized the idea and extended its scope beyond the field of software design to include software architecture and project management. [3] Other authors have extended it further since to encompass environmental, organizational, and cultural anti-patterns. [4]
According to the authors of Design Patterns, there are two key aspects of an anti-pattern that distinguish it from a bad habit, bad practice, or bad idea. First, an anti-pattern is a commonly used process, structure or pattern of action that, despite initially appearing to be appropriate and effective, has more bad consequences than good ones. Second, another solution exists to the problem that the anti-pattern is attempting to address. This solution is documented, repeatable, and proven to be effective where the anti-pattern is not.
A guide to what is commonly used is a "rule-of-three" similar to that for patterns: to be an anti-pattern it must have been witnessed occurring at least three times. [5]
Documenting anti-patterns can be an effective way to analyze a problem space and to capture expert knowledge. [6] While some anti-pattern descriptions merely document the adverse consequences of the pattern, good anti-pattern documentation also provides an alternative, or a means to ameliorate the anti-pattern. [7]
In software engineering, anti-patterns include: [7]
Project management anti-patterns included in the Antipatterns book include: [4]
As described in Long (2001), design anti-patterns are 'obvious, but wrong, solutions to recurring problems'.
...common approaches to solving recurring problems that prove to be ineffective. These approaches are called antipatterns.
An antipattern is just like a pattern, except that instead of a solution it gives something that looks superficially like a solution, but isn't one.