4
I am trying to adapt one of my projects to the standards of SOLID, but I’m not getting out of ground zero. The project in question can be found at: https://github.com/crphp/webservice
After some attempts the following doubts arose:
- Every project is a liability of adequacy to all 5 principles advocated by SOLID standards?
- These principles have some hierarchical implementation dependency?
- I believe the principle SRP can be considered a starting point, but then, what would be the next principle to be met, there is a logical order (not obligatory in itself, but logical)?
- In one of my advances, I tried to meet the principle ISP, however, I was unable to determine interfaces + common signature. I even came to a common interface, however the signature of this interface diverged between the project classes (Crphp src Soap.php and Crphp src Clientegenerico.php). What to do in these cases? Does a project (module) so small require the creation of more than one interface to try to overcome this barrier?
The 5 principles mentioned above are:
- SRP - Single Responsibility principle
- OCP - Open/closed principle
- LSP - Liskov substitution principle
- ISP - Interface segregation principle
- DIP - Dependency inversion principle
And why do you want to "fit your projects to SOLID"?
– Wallace Maxters
Related: What is SRP?
– Wallace Maxters
Related: What are the differences between Dependency Injection and Control Inversion?
– Wallace Maxters
Related: What are the types of Ioc?
– Wallace Maxters
Related: What is Dependency Injection?
– Wallace Maxters
Related: What is DIP?
– Wallace Maxters
There’s stuff to study all day, kkkkkk
– Wallace Maxters