DEV Community

Discussion on: SOLID is not applicable

Collapse
benjioe profile image
Benjioe • Edited on

SOLID main principe is Open close (he is the first one in the original paper).
Open close principal is the idea thats when you have a new requirement, do not change the original code but create a new function/object who call/is call by te original one.
All the other letters are way to implement open close principal in OOP. But most of them can be adapte for FP too (replace Interface with callback function).

Collapse
adam_cyclones profile image
Adam Crockett Author

what is POO?

Collapse
benjioe profile image
Benjioe

OOP* thanks

Thread Thread
adam_cyclones profile image
Adam Crockett Author

I laughed so hard. Thanks for making my morning πŸ˜‚

Thread Thread
benjioe profile image
Benjioe

In france, whe call it "Programmation orientΓ© objet (POO)", in english that's not the same ...

Thread Thread
benjioe profile image
Benjioe

Maybe when you know FP, OOP look like poo

Thread Thread
adam_cyclones profile image
Adam Crockett Author

Now that is something I can dedicate ly agree with. πŸ’©πŸ˜†βœ¨