Comment on Functional Programming vs. Object Oriented Programming
Corbin@programming.dev 10 months agoObject-oriented design is about message-passing; messages are more important than objects. Classes are completely irrelevant – there’s an entire branch of object-oriented language design without classes!
abhibeckert@lemmy.world 10 months ago
That’s not OOP anymore.
I’d argue “message passing” is an implementation detail rather than part of OOP. And it’s an implementation detail that is rarely used in modern OOP languages.
Redkey@programming.dev 10 months ago
Whatever it may have become in later years, Alan Kay, who is often called “The Father of Object-oriented Programming”, outlined the message-passing idea as the main concept he was driving at, originally.
He also says that he probably misnamed it.
Here’s a discussion in which the man himself makes a (small) appearance: …stackexchange.com/…/so-what-did-alan-kay-really-…
xigoi@lemmy.sdf.org 10 months ago
JavaScript is an example of how OOP can be done without classes (before they were added to appease Java enthusiasts).