© Vaskaran Sarcar 2019
Vaskaran SarcarJava Design Patternshttps://doi.org/10.1007/978-1-4842-4078-6_28

28. AntiPatterns: Avoid the Common Mistakes

Vaskaran Sarcar1 
Bangalore, Karnataka, India

The discussion of design patterns cannot be completed without antipatterns. This chapter briefly overviews antipatterns. Let’s start.

What Is an Antipattern?

In real-world application development, you may follow approaches that are very attractive at first, but in the long run, they cause problems. For example, you try to do a quick fix to meet a delivery deadline, but if you are not aware of the potential pitfalls, you may pay a big price.

Antipatterns alert you about common mistakes that lead to a bad solution. Knowing them helps you take precautionary measures. ...

Get Java Design Patterns: A Hands-On Experience with Real-World Examples now with O’Reilly online learning.

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