🏗️Design Pattern
Also known as Design Patterns, Software Design Pattern, Gang of Four Patterns
A known way to solve a problem that keeps coming up in code.
Think of it like
Think of it like a recipe card. Many cooks have made the dish, so you follow the tried way.
Example
Lucy needs many parts of her app to update when a setting changes. A teammate says use the observer pattern, and she knows the shape at once.
Why it matters
Patterns give teams shared words for designs. They also save you from solving a solved problem badly.
Definition
Common mistake
Key takeaways
- 1A known answer. To a common problem.
- 2A shape, not code. Fit it to your case.
- 3Shared names. Faster team talk.