The State Pattern in Java

Introduction to the State Pattern Design pattern in a simple meaning, is a way to design reusable object-oriented code. We can think of ways to design our classes, interfaces, enums and their members so that the code is reusable but flexible. There are 23 most important design patterns, pioneered by the book Design Patterns: Elements…

The Visitor Pattern in Java

Introduction to the Visitor Pattern Design pattern in a simple meaning, is a way to design reusable object-oriented code. We can think of ways to design our classes, interfaces, enums and their members so that the code is reusable but flexible. There are 23 most important design patterns, pioneered by the book Design Patterns: Elements…

The Mediator Pattern in Java

Introduction to the Mediator Pattern Design pattern in a simple meaning, is a way to design reusable object-oriented code. We can think of ways to design our classes, interfaces, enums and their members so that the code is reusable but flexible. There are 23 most important design patterns, pioneered by the book Design Patterns: Elements…

The Command Pattern in Java

Introduction to the Command Pattern Design pattern in a simple meaning, is a way to design reusable object-oriented code. We can think of ways to design our classes, interfaces, enums and their members so that the code is reusable but flexible. There are 23 most important design patterns, pioneered by the book Design Patterns: Elements…

The Observer Pattern in Java

Introduction to the Observer Pattern Design pattern in a simple meaning, is a way to design reusable object-oriented code. We can think of ways to design our classes, interfaces, enums and their members so that the code is reusable but flexible. There are 23 most important design patterns, pioneered by the book Design Patterns: Elements…

The Strategy Pattern in Java

Introduction to the Strategy Pattern Design pattern in a simple meaning, is a way to design reusable object-oriented code. We can think of ways to design our classes, interfaces, enums and their members so that the code is reusable but flexible. There are 23 most important design patterns, pioneered by the book Design Patterns: Elements…