Answer the question
In order to leave comments, you need to log in
Is the second SOLID principle respected in Javascript?
In your opinion, is the ability to override object methods in JavaScript a violation of the "O" 2nd principle of the SOLID acronym?
The Open/Closed principle
"Software entities ... should be open for extension, but closed for modification."
(C) Quote from Wikipedia
Answer the question
In order to leave comments, you need to log in
In my opinion, the very principle of working with entities is rather implied, rather than the capabilities of a particular programming language.
In the same PHP, you can change the private property of any object through Reflection.
I assume that the same can be done in other languages.
It is important to understand what can be changed in the program.
And back to the question. SOLID must be respected when writing a program, not in a programming language. That's the problem.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question