Projektavimo šablonai yra pakartojamieji, patikrinti sprendimai dažniems programinės įrangos projektavimo problemoms — bendri šablonai, kaip struktūrizuoti kodą pasikartojančioms išklausoms spręsti. Jie teikia bendrą žodyną ir patikrintus požiūrius, padedant rašyti geresnį, lengviau prižiūrimą kodą.
Kas yra projektavimo šablonai
DESIGN PATTERNS = proven, reusable solutions to RECURRING design problems:
→ not code to copy, but TEMPLATES/approaches for structuring code
→ distilled from experience (best practices for common situations)
→ e.g. "how do I ensure only one instance of a class?" → Singleton pattern
→ describe the PROBLEM, the SOLUTION structure, and the trade-offs
