Re:Alan Kay on the Meaning of “Object-Oriented Programming” ...
by 0x445442 on Monday March 18, 2019 @09:42AM
(#19420888)
> To me, it's the difference between pulling the strings on a puppet (method calling) vs placing a request to a colleague (messaging).
This is the way I think about it as well, the more concise notion is ask don't tell. By don't tell I'm thinking of telling an object to change it's state directly. This distinction can be very, very subtle.
This is the way I think about it as well, the more concise notion is ask don't tell. By don't tell I'm thinking of telling an object to change it's state directly. This distinction can be very, very subtle.