Design Patterns · Junior · Question 1 of 75
What is a design pattern?
- ✓Correct answer: A typical solution to a commonly occurring design problem
- 2A ready-made library you install via npm
- 3A mandatory code style standard for the team
Explanation
A pattern isn't code but a description of an idea: what problem it solves, what parts the solution consists of, and its pros and cons. The implementation depends on the language and context. Knowing patterns gives a team a shared vocabulary: "we need a strategy here" is clear without long explanations.