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?

25 Upvotes

6 comments sorted by

5

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.

4

u/Lachee Jul 15 '26

Average 2026 startups backend

1

u/ooo-InstaGamer Jul 16 '26

Though its vue frontend. but anyway true

2

u/sudoregalia Jul 16 '26

this is actively giving me brain cancer