Design Patterns in Java
Design Patterns in Java
Hello everyone and welcome to this new blog post. In this new entry we will discuss one of the most
important when solving problems in programming, it is about how to approach the resolution of them
relying on the so-called 'Design Patterns'.
Design patterns
After many years of work, a lot of work in learning and using design patterns in Java, in this
In this article, I will reflect on some of them and provide examples of the most important ones. I hope they are useful to you.
more than one of you.
Of course, we are not going to reinvent the wheel by creating what has already been created and validated; I will give you examples of use.
referring to other websites that I have previously consulted and I believe explain and exemplify in a way
perfect all the necessary knowledge to understand each design pattern.
If you are not familiar with software design patterns, you can initially refer to Wikipedia:
In software engineering, a design pattern is a general reusable solution to a problem that occurs.
commonly in software design. A design pattern is not a finished design that can be implemented
directly in code, but it has to be applied to a real problem and adapted as much as possible.
Design patterns can accelerate the development process, providing paradigms for testing.
tested development.
As we all like to program faster, and we don't like to have to invent a thousand paradigms or mazes to
solving a problem, design patterns are a good idea for that.
1. Creation patterns
2. Structural Patterns
3. Behavior patterns
According to this organization, this article is organized in the same way:
I leave you some links to the most commonly used design patterns:
Chain of Responsibility
Command Design Pattern
Interpreter Design Pattern
Iterator Design Pattern
Mediator Design Pattern
Memento Design Pattern
Null Object Design Pattern
Observer Design Pattern
State Design Pattern
Strategy Design Pattern
Template Method Design Pattern
Visitor Design Pattern