Creational patterns – Abstract Factory

Overview In this post we will see how and when to use the Abstract Factory design pattern. If you want to get an overview of design patterns please check the introduction series ( PART1, PART2 and PART3 ). Creational Patterns abstract the instantiation process therefore they: encapsulate knowledge about concrete classes hides how instances of … Read more

Introduction to design patterns PART 3

Overview This is the last post from the introduction series in which we will identify and use a design pattern for the problem found in PART 2, according to the steps presented in PART 1 Finding a pattern steps: Note: the code can be found here. 1. Identify the problem We identified the problem in … Read more

Introduction to design patterns PART 2

Overview This is the second post from the design pattern series. In this post we will apply the steps you should make before using a design pattern (applying clean coding and SOLID principles, refactoring). This steps were presented in my previous post. We will identify the problems that our legacy code has and try to … Read more

Introduction to design patterns PART 1

Overview This is the first post from a series in which I will dive into the topics of design patterns. My purpose is to clarify what are design patterns and how to use them. The following topics will be covered: Design pattern introduction What is a design pattern? When to use a design pattern. Finding … Read more