by msccuba · 7y ago · 0 comments
Few years later Q: What is OOP? Inheritance, polymorphism, etc? Alan: It is message passing. All the other stuff I haven't figured it out yet. They are just nice to have things.
Me: Actually OOP is code organized into cell/computer like structure that happen to use messages to make it work.
Dear Alan don't emphasize message passing although that is a way to deny the other techniques as non-essential to OOP.
I don't think there's any practical reason why you couldn't have perfect data isolation in OOP (make everything private, only pass copies of objects around, build an event/dispatch system), this isn't what usually happens. As Joe Armstrong said: You wanted a banana but what you got was a gorilla holding the banana and the entire jungle.
That's why there's an emphasis on message passing, because it speaks directly to data ownership. OOP, not so much.
You wanted to explain data ownership, but what you got was cells, computers, networks and finally "message passing".