mercredi 20 octobre 2021

What are the relationships between the five SOLID principles?

This has been bugging me for ages. SOLID is a set of five principles for maintainable and extensible development, often favoured for large projects in C# etc.

But are there really five principles? In other words, is it possible to write code that satisfies 4 but not 5 or the principles? And is this true for any choice of 4 principles?

The reason I ask is I struggle to fully separate the logic of all of them and it seems like they overlap a bit, which makes me doubt whether all five rules are needed, or whether SOLID could be described more succinctly with, say, three principles.

Aucun commentaire:

Enregistrer un commentaire