2 ms·
It only applies to the object oriented programming paradigm
by someguyiguess 6mo ago
It only applies to the object oriented programming paradigm
- marcosdumay 6mo agoThat's understating the problem. It mandates OOP. If you follow SOLID, you'll write OOP only, with always present inheritance chains, factories for everything, and no clear relation between parameters and the procedures that use them.
- Exoristos 6mo agoThis is only superficially true. Here's a fair discussion that could serve as a counterpoint: https://medium.com/@ignatovich.dm/applying-solid-principles-in-react-applications-44eda5e4b664 https://medium.com/@ignatovich.dm/applying-solid-principles-...
- mrkeen 6mo agoNegative. The only part of SOLID that is perhaps OO-only is Liskov Substitution. L is still a good idea, but without object-inheritance, there's less chance of shooting yourself in the foot.
- kortex 6mo agoI go by a philosophy that Liskov Substitution is reeeally about referential transparency. I don't care about parent/child classes, I care about interfaces and implementations, and structural subtyping. Fix that, and it's great.