informatique:design_pattern
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédente | |||
informatique:design_pattern [18/01/2016 13:21] – [Documentation] cyrille | informatique:design_pattern [03/03/2023 14:56] (Version actuelle) – [Documentation] SOLID principles - Increased maintainability, Increased testability, Increased flexibility, Better code organization cyrille | ||
---|---|---|---|
Ligne 17: | Ligne 17: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
- | | + | |
+ | |||
+ | [[https:// | ||
+ | | ||
+ | * Single Responsibility Principle (SRP) | ||
+ | * The SRP states that a class should have only one reason to change. In other words, a class should only have one responsibility and be focused on doing one thing well. | ||
+ | * Open/Closed Principle (OCP) | ||
+ | * The OCP states that a class should be open for extension, but closed for modification. | ||
+ | * Liskov Substitution Principle (LSP) | ||
+ | * The LSP states that objects of a superclass should be able to be replaced with objects of a subclass without affecting the correctness of the program. In other words, a subclass should be a substitute for its superclass. | ||
+ | * Interface Segregation Principle (ISP) | ||
+ | * The ISP states that classes should not be forced to implement interfaces they do not use. This principle can be applied by creating smaller, more focused interfaces that define specific tasks | ||
+ | * Dependency Inversion Principle (DIP) | ||
+ | * The DIP states that high-level modules should not depend on low-level modules, but both should depend on abstractions. This principle helps to reduce the coupling between modules | ||
==== best-practice-software-engineering' | ==== best-practice-software-engineering' |
informatique/design_pattern.txt · Dernière modification : 03/03/2023 14:56 de cyrille