4 ms·
You’ll hate all the vagueposting Lao Tzu did. A lot of people think of programming as performing operations on “data” which one must know how to correctly inte
by dullcrisp 2y ago
You’ll hate all the vagueposting Lao Tzu did.
A lot of people think of programming as performing operations on “data” which one must know how to correctly interpret. If two different pieces of code don’t agree about the meaning of your data, it will lead to subtle bugs.
The idea of OOP is to eliminate “data” as much as you can, and express your logic in terms of objects interacting with each other through their interfaces. If done properly, you no longer need to deal with data that every piece of code needs to interpret in its own, but with a system that already understands the meaning and semantics of its state.
Of course most people just create objects with data accessors instead.