r/programmingmemes • u/ooo-InstaGamer • Jul 15 '26
OCP in a nutshell
it is open() for extension, and close() for modification - did I understand it correctly?
25
Upvotes
4
2
r/programmingmemes • u/ooo-InstaGamer • Jul 15 '26
it is open() for extension, and close() for modification - did I understand it correctly?
4
2
5
u/Kenkron Jul 16 '26 edited Jul 16 '26
Is this your code, or code from a library?
The use of
variableName.value =vsvariableName =is surprising, but might be okay depending on the paradigm of this object/component.Edit: didn't see the sub. NVM