Design patterns என்பது பொதுவான software design சிக்கல்களுக்கான மீண்டும் பயன்படுத்தக்கூடிய, நிரூபிக்கப்பட்ட தீர்வுகள் — குறிப்பிட்ட சவால்களை தீர்க்க code ஐ எவ்வாறு வடிவமைப்பது என்பதற்கான பொதுவான templates. அவை பகிரப்பட்ட சொற்களஞ்சனம் மற்றும் சோதிக்கப்பட்ட approaches ஐ வழங்குகின்றன, இதனால் சிறந்த, மிகவும் பராமரிக்கக்கூடிய code ஐ எழுத உதவுகிறது.
Design patterns என்பது என்ன
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
