Design Patterns are key solutions to common problems we encounter in object-based software development or maintenance. Looking at it this way it seems to be something really quite exquisite, doesn’t it?
Let’s try to understand from another perspective: imagine you in the future, 15 years from now, you will certainly have gone through N problems, repeatedly and in different projects. The natural tendency is for you to create usual solutions to solve them in such a way that you can apply them in the future to other projects.
These solutions, created by you, even if not shared with the literature, can be considered as Design Patterns, yes, design patterns created by you to solve your problems. Nothing fairer?
Luck of the day: We don’t need to wait ten or more years to accumulate experience (and, consequently, hair loss) so that we have developed efficient solutions for our software.
Software engineers for decades have developed design patterns to solve common problems. Why not give them a chance to get to know them and, who knows, use them?
Also read: Top 10 Best Artificial Intelligence Software
All the inspiration behind our concept of design patterns actually came from architecture (yes, that area of knowledge that designs and architects environments), from a book called “A Patter Language”, written by Christopher Alexander, Sara Ishikawa and Murray Silverstein were the ones who first launched the idea of “pattern language”.
The purpose of the book was to present hundreds of patterns about how cities, neighborhoods, homes and environments in general could be designed.
The first major work in the area of software development that absorbed this idea, collecting and developing dozens of patterns for software, took place in 1994 in a book called “Design Patterns: Elements of Reusable Object-Oriented Software”, written byRalph Johnson, Richard Helm, Erich Gamma and John Vlissides.
The book originally discussed 23 design patterns. The authors and the book made such an impact that they began to be called and recognized as the Gang of Four (GoF) and such patterns began to be called GoF Patterns.
Also read: Top 10 IT Skills in Demand for 2021
GoF standards have been described decades ago and, software is almost like a living organism, it undergoes transformations to adapt to the new realities of the environment.
The GoF standards have been divided and categorized according to the nature of the problem they solve (or at least they try, since software, as you well know, is something with a “life of its own):
Aims to abstract the instantiation of objects. With them, the system will request an object of a certain type and have it ready, on demand, without even worrying about the nuances of creation. Making a parallel with the real world, an automobile company when it needs shock absorbers, it outsources (requests them) and then installs them in their cars, without worrying about the whole involved in creating this component.
The designs in this category are concerned with better organizing the structure of classes and the relationships between classes and objects.
The standards in behavioral design act directly in the delegation of responsibilities, defining how objects should behave and communicate.
Wednesday October 20, 2021
Monday October 18, 2021
Sunday October 10, 2021
Sunday October 10, 2021
Thursday September 23, 2021
Monday September 13, 2021
Sunday September 12, 2021
Saturday August 28, 2021
Monday August 16, 2021
Saturday August 14, 2021