Design Patterns · Junior · Question 75 of 75
What does "premature optimization is the root of all evil" warn against?
- ✓Correct answer: Making code complex for speed before measuring that it's actually a bottleneck
- 2Ever optimizing code
- 3Writing tests too early
Explanation
Measure first (profiler, Web Vitals), then optimize the hot spots. Obvious algorithmic problems are still worth avoiding from the start.