Chapter 6. Anti-patterns and Best Practices
We have come a long way from understanding the common software development problems and their solutions. Indeed, there must be some scenarios wherein it feels like an overkill or overdesign and yet some solutions may seem better than the design patterns. The idea behind design patterns is to find a structured and robust solution for common problems and not for specific problems. As problems keep on evolving, so will the solutions.
With our development experience and knowledge of design patterns, we can identify the best solutions or design patterns for code development and structuring. Similarly, there are some development solutions, which are regarded as bad solutions or anti-patterns.
Numerous anti-patterns could be listed in a book, but we are trying to highlight some very common pitfalls or bad solutions from a Salesforce customization standpoint.