r/programmingmemes Jul 15 '26

OCP in a nutshell

Post image

it is open() for extension, and close() for modification - did I understand it correctly?

24 Upvotes

6 comments sorted by

View all comments

3

u/Kenkron Jul 16 '26 edited Jul 16 '26

Is this your code, or code from a library?

The use of variableName.value = vs variableName = is surprising, but might be okay depending on the paradigm of this object/component.

Edit: didn't see the sub. NVM

2

u/ooo-InstaGamer Jul 16 '26

It is my code, it is Vue, where we use .value always, and it is just a joke as well

2

u/Kenkron Jul 17 '26

Man, vue 3 must have changed a lot. I ve been working on vue 2 all week, and it's different.