4 ms·
Should be pointed out that this refers to C++/Java/Ruby/python style objects, and not smalltalk/erlang style objects, which is a message passing model for data
by dnautics 8y ago
Should be pointed out that this refers to C++/Java/Ruby/python style objects, and not smalltalk/erlang style objects, which is a message passing model for data storage.
- totemizer 8y agoAnd you do the first thing this author describes: http://www.smashcompany.com/technology/object-oriented-programming-is-an-expensive-disaster-which-must-end http://www.smashcompany.com/technology/object-oriented-progr...
- dnautics 8y agoNot really. Almost no one would call erlang or elixir an Oop language, but one basically does everything using Kay's style. No true Scotsman doesn't apply when the original definition legitimately shifts
- mbell 8y agoRuby has smalltalk style objects.
- snazz 8y agoCould someone enlighten me as to how Java style OOP differs from Smalltalk's variant? I've read the Alan Kay quote on how he's sorry for focusing on objects instead of message passing but I'm still unsure on how Smalltalk is so much better not having used it.
- dnautics 8y agoI can't speak for smalltalk but the actor model in erlang (but especially in elixir) is a joy.
- timbit42 8y agoThis may not answer your question and may not be 100% correct. Message passing means that objects have their own data and do not have shared access to it. This makes multi-threading and parallelized code very easy to do because you don't have to worry about data changing unexpectedly. Clojure, and other languages, achieve this by making data immutable, which has a similar effect. As you mentioned, after Alan Kay used the term "object-oriented" to describe Smalltalk, people focused on the objects instead of the messages and created languages designed around the idea of being object-oriented instead of around message passing (I believe Objective-C and Ruby do message passing), thereby missing the benefit. All OOPLs not based on message passing should die. Also, unlike Java, Smalltalk has no classes. Any existing object can be used as a template to create a new object.