Single Responsibility principle – Explanation and the real-world example
Let’s first explain a single responsibility principle on the class example and later we will show how it applies in…
Composite pattern with the real-world example
In this tutorial, we will solve a real-world problem and solve it with the composite pattern. The Real-world business problem that I…
Bridge pattern with real-world example
In this tutorial, we will show the real-world problem and solve it with a bridge pattern. Real-world business problem that I had…
Template pattern with real-world example
In this tutorial, we will solve the a real-world problem and solve it with the template pattern. The real-world business…
Memento pattern explained
In this post I will show you a memento pattern on one very simple example. I will not use a…
Visitor, memento and state patterns combined
In this article, we will solve the problem that requires applying all of those three patterns. Before you continue to…
State pattern with a real-world example
Overview of the pattern The core idea of the state pattern is that an object change behavior based on it’s state….
Visitor pattern with a real-world example
In this tutorial, we will show a real-world problem and solve it with a visitor pattern.
A lot of times this pattern is used to avoid instanceof keyword in Java.