News for hackers. Stuff that matters.
Re:Object-Oriented Programming: A Disaster Story by pmontra on Wednesday January 20, 2016 @04:47AM (#10936952)
Erlang's creator, Joe Armstrong, said "Erlang might be the only object oriented language because the 3 tenets of object oriented programming are that it's based on message passing, that you have isolation between objects and have polymorphism." (Third point at http://www.infoq.com/interviews/johnson-armstrong-oop)

So maybe OO is not that bad, it's the so called OO languages that didn't go all the way to implement it properly. Still they've been very successful so far. It means that many people liked what they had to offer. This might be about to change even quickly but I won't be so harsh agaist what we have under our fingerprints now. Not perfect but not a disaster.

Re:Object-Oriented Programming: A Disaster Story by cbd1984 on Wednesday January 20, 2016 @05:24AM (#10937125)
Nobody can agree on what OO is:

http://c2.com/cgi/wiki?DefinitionsForOo

http://c2.com/cgi/wiki?NobodyAgreesOnWhatOoIs

(Of course, I mean that "Everyone knows precisely what OO is, but if you get enough of them in the same room you see distinct camps forming, each with their own definition of OO which is incompatible in some respect with the definition every other camp has.")

Re:Object-Oriented Programming: A Disaster Story by rasur on Wednesday January 20, 2016 @05:25AM (#10937132)
What about Smalltalk? Possibly the only other Object-Oriented language?
Re:Object-Oriented Programming: A Disaster Story by pmontra on Wednesday January 20, 2016 @05:53AM (#10937230)
That interview is about both Erlang and Smalltalk. Ralph Johnson, not one of Smalltalk's designers but close to what we'd call an evangelist nowadays, speaks about Smalltalk. Unfortunately I can't find one sentence that captures his view about Smalltalk's OO. I quote Johnson about Erlang, and in a way about Smalltalk itself:

"The thing about Erlang is that it's in some sense 2 languages, at least you program it 2 levels because one is the functional language that you use to write a single process and then there is what you think about all these processes and how do they interact, one process is sending messages to the other. At a higher level, that Erlang is object oriented, at the lowest level it's a pure functional language and that's how it got advertised for a long time."

[...]

"The only way in Smalltalk to interact with an object is send it a message, but the issue is what message do you have. It's the same thing in Erlang"

So it seems to me that he's saying that Erlang's processes are close to Smalltalk's objects.

I recommend reading all the transcript (much quicker than watching the video).

Re:Object-Oriented Programming: A Disaster Story by rasur on Wednesday January 20, 2016 @06:53AM (#10937445)
Ah yes, thanks for clarifying.. I didn't quite get as far as watching or reading the article due to work distractions. :/
Re:Object-Oriented Programming: A Disaster Story by marvel_boy on Wednesday January 20, 2016 @05:49AM (#10937209)
Sure, Smalltalk is the only OO language: message-passing, isolation and polymorphism. Java was a pathetic copy.
Re:Object-Oriented Programming: A Disaster Story by SixSigma on Thursday January 21, 2016 @11:48AM (#10946426)
“The problem with object-oriented languages is they’ve got all this implicit environment that they carry around with them. You wanted a banana but what you got was a gorilla holding the banana and the entire jungle.” – Joe Armstrong

See also

Why OO Sucks - by Joe Armstrong

http://harmful.cat-v.org/software/OO_programming/why_oo_suck...

Re:Object-Oriented Programming: A Disaster Story by ricksplat on Wednesday January 20, 2016 @05:35AM (#10937166)
I watched a talk recently with Bjarne Stroustroup where he claimed he never developed C++ as an "Object Oriented" language, just that it had some OO based abstractions. Apparently it got labelled as such at the time because OO was in vogue but it has many great features quite apart from that. His intention was that it just be a "better C" and be used as such.
Re:Object-Oriented Programming: A Disaster Story by jernfrost on Wednesday January 20, 2016 @09:00AM (#10938059)
Depends on who gets to decide what object oriented means. Simula was out before Smalltalk. Most will call that the first object oriented programming language but it did not rely in message passing but rather worked similar to C++ and Java. Which isn't odd since Bjarne based C++ on his work with Simula.
Re:Object-Oriented Programming: A Disaster Story by joshguthrie on Thursday January 21, 2016 @09:43AM (#10945458)
What about ruby? Even classes are objects.