Patrones de Diseño y Principios SOLID
Patrones de Diseño y Principios SOLID en Python
Principios SOLID
Principio de Responsabilidad Única (SRP) en Python
Procesador de Pagos con Stripe en Python
Aplicar el Principio de Responsabilidad Única (SRP)
Principio Abierto/Cerrado (OCP) en Python
Aplicar el Principio Abierto/Cerrado (OCP)
Principio de Sustitución de Liskov (LSP) en Python
Aplicar el Principio de Sustitución de Liskov (LSP)
Principio de Segregación de Interfaces (ISP) en Python
Aplicar el Principio de Segregación de Interfaces (ISP)
Principio de Inversión de Dependencias (DIP) en Python
Aplicar el Principio de Inversión de Dependencias (DIP)
Reestructuración del proyecto
Reestructuración de un proyecto en Python
Patrones de Diseño
Introducción a los Patrones de Diseño
Patrón Strategy en Python
Implementando el Patrón Strategy
Patrón Factory en Python
Implementando el Patrón Factory
Patrón Decorator en Python
Implementando el Patrón Decorador: Mejora tu Servicio de Pagos
Patrón Builder en Python
Implementando el Patrón Builder: Construye Servicios de Pago
Patrón Observer en Python
Implementando el Patrón Observer
Patrón Chain of Responsibility en Python
Implementando el Patrón Chain of Responsibility: Flujo Eficiente de Validaciones
Patrones de Diseño y Principios SOLID en un Procesador de Pagos
You don't have access to this class
Keep learning! Join and start boosting your career
Design patterns are a powerful tool in software development that allow you to solve common problems in an efficient and reusable way. In this introduction, we will explore what they are, why they exist, and what are the main types of patterns, such as creative, structural and behavioral, along with practical examples that will allow you to understand their usefulness in the creation of quality software.
Design patterns are reusable solutions to recurring problems in software development. They can be compared to recipes in the culinary world: each pattern is a guide applicable to certain scenarios or problems. Just as recipes fit certain ingredients, design patterns apply to specific situations within programming.
These patterns arise from the accumulated experience of the authors of the book Design Patterns, known as "The Gang of Four". Through their work, they compiled solutions that help create maintainable and reusable code, which is crucial in collaborative development. By adopting these patterns, developers can communicate more effectively, using a common language that simplifies the exchange of ideas and collaboration on code reviews.
There are three main categories:
Creational patterns: these focus on the creation of object instances. They are useful when the creation of an object is complex or has many dependencies. Examples include:
Structural patterns: They focus on the composition of classes and objects to create efficient structures. They allow to organize classes in an optimal way. Some examples are:
Behavioral patterns: They help to improve communication and assignment of responsibilities between objects, solving complex interactions between classes. Examples include:
In real projects, it is not necessary to use all design patterns. The key is to select those that best fit the specific context of the project. In this course, we will see some of the most used patterns in the industry, applicable to the type of software we will develop, and will be key to solve common problems efficiently.
Contributions 7
Questions 0
Want to see more contributions, questions and answers from the community?