I am studying patterns and anti-patterns. I have a clear idea about patterns, but I don\'t get anti-patterns. Definitions from the web and Wikipedia confuse me a lot.
<
it is sometimes used when you misuse design patterns in an illegal way, or you don't know the actual usage of it. for example, having builder pattern for simple classes, or obsessively defining one singleton instance for each Active class you use in your code. also it might be beyond design patterns. for example, defining local variables in Java as final, or using try / catch for NullPointerException when you could simply check input against being null, or nulling objects after they are used (like what you do in some other languages) that you don't notice about garbage collection mechanism, or calling system.gc() to make memory empty, and many other misunderstandings, which are quite likely to be considered as a Cargo-Cult phenomena.