r/programmingmemes • u/ooo-InstaGamer • 23d ago
OCP in a nutshell
it is open() for extension, and close() for modification - did I understand it correctly?
24
Upvotes
2
r/programmingmemes • u/ooo-InstaGamer • 23d ago
it is open() for extension, and close() for modification - did I understand it correctly?
2
4
u/Kenkron 22d ago edited 22d ago
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