Design Pattern are best practices how to solve common know problems. This article will give an overview of best practices in object-oriented programming and has pointers to some design-pattern tutorials.
Design patterns are proven solutions approaches to specific problems. A design pattern is not a framework and is not directly deployed via code.
Design Pattern have two main usages:
Design patterns are proven solutions approaches to specific problems. A design pattern is not a framework and is not directly deployed via code.
Design Pattern have two main usages:
- Common language for developers: They provide developers a common language for certain problems. For example if a developer tells another developer that he is using a Singleton, the another developer (should) know exactly what this means.
- Capture good practices: Design patterns capture solutions which have been successfully applied to problems. By learning these patterns and the related problem, an unexperienced developer learns a lot about software design.
Design pattern are based on the base principles of object orientated design.
- Program to an interface not an implementation
- Favor object composition over inheritance
Design Patterns can be divided into:
- Creational Patterns
- Structural Patterns
- Behavioral Patterns