4 ms·
The main problem I see is that the overall SOLID principles while still correct, the original definitions used are too outdated and heavily imply inheritance ev
by resonantjacket5 6y ago
The main problem I see is that the overall SOLID principles while still correct, the original definitions used are too outdated and heavily imply inheritance everywhere.
Single Responsibility, honestly I like 'separation of concerns' much more. People tend to think single responsibility means use tiny classes and single line functions.
Open closed principle stating "should be open for extension, but closed for modification" infers to many it's about inheritance only.
Open for customizability would be much better.
Liskov Substitutions seems like its talking about inheritance when it really also applies to interface usage in general.
Dependency Inversion principle is interpreted by many to be use dependency injection everywhere etc...
I wish someone would go and update these definitions for the modern world.