↓Skip to main content

Software Design

2023


Observer Design Pattern

·4 mins

The Observer’s design pattern is used primarily when we are interested in any change of status being notified to anyone who needs to know about that change.

In the observer design pattern, the object that looks at the state of another object is called “Observer” and the object that is “looking” those changes is called “Subject”.

Factory Design Pattern

·3 mins

The Factory design pattern is mainly used when we have a class or interface with many subclasses or implementations, and according to some input, we need to return one of these specific subclasses.

Facade Design Pattern

·3 mins

The Facade design pattern simplifies the complexity of a system through a simpler interface.

It improves access to our system by allowing other systems or subsystems to use a common access point that reduces complexity, minimizing interactions and dependencies.

Adapter Design Pattern

·3 mins

The Adapter design pattern works when you have different or incompatible interfaces, and you need the client to use both in the same way.

The Adapter design pattern says in its definition that it converts an interface or class into another interface that the client needs.