↓Skip to main content

Software Design

2023


Strategy Design Pattern

·4 mins

The Strategy design pattern helps to define different behaviors or functionalities that can be changed at runtime.

In the Strategy pattern, we create different classes that represent strategies and that we can use, according to some variation or input.

Singleton Design Pattern

·2 mins

This is one of the best-known patterns and is perhaps the first that comes to mind when you ask us about design patterns in Java.

The goal is to have only one instance of a class involved and ensure that this happens every time this instance is needed.