nanyang-system-developers

Introduction to Design Patterns

Design patterns are typical solutions to common problems in software design. Each pattern is like a blueprint that you can customize to solve a particular design problem in your code. They are not finished designs that can be transformed directly into code but are templates for how to solve a problem in many different situations.

Why Use Design Patterns?

Types of Design Patterns

Design patterns can be classified into three main categories:

  1. Creational Patterns: Deal with object creation mechanisms, trying to create objects in a manner suitable to the situation.
  2. Structural Patterns: Deal with object composition or the way to realize relationships between entities.
  3. Behavioral Patterns: Deal with object collaboration and the delegation of responsibilities among objects.

Common Design Patterns

Further reading