3 ms·
not denying "proper OOP". my point is that a lot of code does not need it. If u were writing the exact same code in go/nodejs/python, you would get by fine with
by sandGorgon 4y ago
not denying "proper OOP". my point is that a lot of code does not need it. If u were writing the exact same code in go/nodejs/python, you would get by fine without it.
You would not break the contract of maliciously trying to access variables that shouldnt be accessed.
For example, a popular convention is to have underscored variable names (__thisisprivate). Works perfectly OK.
99% of getters/setters dont do anything more. They do exactly this. No validation, nothing. So I'm questioning the ordinary....not the special cases.
- stickfigure 4y ago> You would not break the contract You wouldn't. Someone else would. Without fail.