Design Patterns · Junior · Question 39 of 75
What is an anti-pattern?
- ✓Correct answer: A popular solution that seems good but does harm
- 2A pattern whose use is forbidden by the language standard
- 3Any code written in a hurry without comments or documentation
Explanation
Examples: the "god object", spaghetti code, magic numbers, copy-paste, premature optimization. Knowing anti-patterns helps you spot them in reviews and explain why a solution is bad.