Design patterns
Design patterns provide a standard terminology and are specific to particular scenarios and problems. Design patterns are not finished code but templates or blueprints only.
Key Characteristics of Design Patterns
- Reusability: Patterns can be applied to different projects and problems, saving time and effort in solving similar issues.
- Standardization: They provide a shared language and understanding among developers, helping in communication and collaboration.
- Efficiency: By using these popular patterns, developers can avoid finding the solution to same recurring problems, which leads to faster development.
- Flexibility: Patterns are abstract solutions/templates that can be adapted to fit various scenarios and requirements.
Types of Software Design Patterns
There are three types of Design Patterns:
- Creational Design Pattern
- Structural Design Pattern
- Behavioral Design Pattern
Creational Design Patterns focus on the process of object creation or problems related to object creation. They help in making a system independent of how its objects are created, composed and represented.
Structural Design Patterns solves problems related to how classes and objects are composed/assembled to form larger structures which are efficient and flexible in nature. Structural class patterns use inheritance to compose interfaces or implementations.
3. Behavioral Design Patterns
Behavioral Patterns are concerned with algorithms and the assignment of responsibilities between objects. Behavioral patterns describe not just patterns of objects or classes but also the patterns of communication between them. These patterns characterize complex control flow that’s difficult to follow at run-time.
Comments
Post a Comment