Introduction to DESIGN PATTERNS | OOP Design Patterns Series

preview_player
Показать описание
Designing object-oriented software that stand the test of time is hard. The goal is to create a resilient but simple model that satisfies current requirements while allowing future extension.

Design Patterns are solutions to common problems we encounter when trying to model a system. One of the most influential books on this topic is “Design Patterns: Elements of Reusable Object-Oriented Software” also known as the Gang of Four (GoF) book. Despite it was published back in 1994, its patterns are used even today in most codebases and leading frameworks, no matter the programming language.

The reason why design patterns are so popular is that they allow us to generalize our model. Rather than creating a model that fits exclusively our current requirements, we invest some time to integrate generic patterns that have been tested over and over on multiple projects and libraries. This way we have the guarantee that our codebase will be easy to maintain and extend in the future.

Another advantage of using design patterns is that they create a shared vocabulary for developers. Imagine we are brainstorming about our next feature, and I tell you: I think we should use a “chain of responsibility” to filter our incoming requests. If we both know what a “chain of responsibility” is that’s enough for me to explain what I have in mind. We don’t need to waste time trying to explain each other how we want to structure our code.

I decided to create a video series that covers the most important patterns. We will cover patterns from the GoF book and newer ones. I am open to suggestions so please leave me a comment and decide what will be the next pattern we focus on.

I will be using Java when describing a pattern because it is one of the most well suited for object-oriented programming. However, you can apply these patterns to most programming languages such as Python, JavaScript, Go, and many more.

Connect with me:

#java #designpatterns #softwaredevelopment
Рекомендации по теме
Комментарии
Автор

Do you use design patterns when coding? 🤓🤓🤓

MarcoLenzo