Introducci贸n al Patr贸n MVVM
Todo para Uno y Uno para Todos
Arquitectura y Dise帽o en Apps iOS
Patrones MVC y MVP en Apps iOS
Principios SOLID
Patr贸n de arquitectura MVVM
Quiz: Introducci贸n al Patr贸n MVVM
Estructura de un Proyecto con MVVM
Inicio del proyecto y estructura b谩sica MVVM
Paquete Models
Core Data
Paquete Views
ViewModel
Quiz: Estructura de un Proyecto con MVVM
Operaciones CRUD en un proyecto con MVVM
Agregar ToDos (Parte 1)
Agregar ToDos (Parte 2)
Listar ToDos
Actualizar ToDos
Archivar ToDos
Desarchivar ToDos
Eliminar ToDos
Actualizar el estado de los ToDos
Dise帽o y Validaci贸n de Vistas para ToDos
Quiz: Operaciones CRUD en un proyecto con MVVM
Clean Architecture
Introducci贸n a Clean Architecture
Estructura de Clean Architecture
Inicio del proyecto con Clean Architecture
Capa de Datos
Comunicaci贸n de red HTTP con TheMovieDB
Capa de Dominio
Capa de Presentaci贸n
Integraci贸n de Capas
Quiz: Clean Architecture
MVVM y Clean Architecture
Highlights
You don't have access to this class
Keep learning! Join and start boosting your career
SOLID principles are fundamental to any software developer who wants to create sustainable and efficient applications. Just as an architect seeks to build a solid and adaptable house, programmers use these principles to ensure that their code is stable, flexible and easy to maintain. Below, we explore these principles in detail and how to apply them in software development, along with practical recommendations for effectively incorporating them into your projects.
The single responsibility principle states that each class should have a single reason to change. Let's imagine a practical scenario: in construction, an electrician focuses exclusively on electrical connections, without interfering with plumbing or painting tasks. Similarly, in code, if you have a class that both calculates taxes and generates invoices, it is advisable to split it into two, ensuring that each class handles a single function. With this approach:
The idea of this principle is that a class should be open for extension, but closed for modification. Back to the house analogy: how to add a new room without demolishing the existing walls? Thus, we can add functionality to an application without modifying the code base. For example, if you need to incorporate a new payment method:
This principle states that the objects of a derived class must be able to replace those of its base class without any problem. This rule is compared to replacing an incandescent light bulb with an LED bulb, where no switches or wiring need to be changed. When implementing this principle:
The principle of interface segregation suggests that classes should not be forced to implement interfaces that they do not use. This concept is similar to a remote control full of unnecessary buttons. For an effective implementation:
The principle of dependency inversion dictates that high-level classes should not depend on low-level classes, but both on abstractions. Let's think about plugs at home: we use adapters without redesigning the electrical system. In the programming context:
To conclude, mastering SOLID principles will allow you to develop software that is not only efficient and maintainable, but also eligible to grow and adapt as needs evolve. Have you ever applied them in your projects? Tell us about your experience and discover how these principles have transformed your way of programming!
Contributions 1
Questions 0
Want to see more contributions, questions and answers from the community?