Goodbye, Object Oriented Programming
-
He forgot to mention that functional programming has its own weaknesses as well. In some regards, it just gives you the opposite of object-oriented programming. For example, in the object-oriented world, you deal with a closed set of functions over an open set of objects, and in the functional world, you deal with an open set of functions over a closed set of objects. The triangle problem, at least the example he gave, is not a problem at all if you realize that a copier is really just a container of a scanner and a printer that delegates both to make it work correctly (first scan, then print). This is not an inheritance problem, even if multiple inheritance was possible it wouldn't be logical to use it here. Both object-oriented and functional programming are powerful ways to solve problems - if done right, you don't have to blame one and abandon it for the other. But I guess it seems to be en vogue to make a fuss about the old way and glorify the new way.
-
Charles Scalfani wrote:
And great. Now it won’t compile. Why?? Oh, I see… This object contains this other object.
Looks like this self-styled architect isn't unaware of dependency injection. Never before was "a bad craftsman always blames his tools" more apt. /ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
-
Charles Scalfani wrote:
And great. Now it won’t compile. Why?? Oh, I see… This object contains this other object.
Looks like this self-styled architect isn't unaware of dependency injection. Never before was "a bad craftsman always blames his tools" more apt. /ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
His naivety has virtually made him look like an object to be laughed at.
-
His naivety has virtually made him look like an object to be laughed at.
that's just bad, really bad.
#SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
-
that's just bad, really bad.
#SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
Mister, this is a private discussion. ;P
-
Kent Sharkey wrote:
"A bad craftsman always blames his tools"
A good craftsman also always blames his tools. ;) Marc
Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Nah, a good craftsman just uses the correct, quality tools, and cares for them.
"If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.
-
This was posted recently? These are concerns devs have had with OOP for 2 decades if not more. Inheritance? That's why we prefer composition thees days. Encapsulation? His example is just a poorly thought-out architecture. Polymorphism? Arguably the strongest reason to use OOP, and he doesn't even address it. Blaming the tool indeed.
-
Mister, this is a private discussion. ;P
-
How about a veggie shark or a flying ant. You could do that in OOP. Wouldn't you ? :)
-
Mister, this is a private discussion. ;P
groan
#SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
-
Recently seen a few articles like this; all show a tremendous ignorance of OOP and then set up massive straw men to make their point. Which is? Since the articles seem like retreads of each other, I wonder if someone is about to present Yet Another Perfect Computer Language to the world.
-
I don't get it - it's too abstract for me. /ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
I see a pattern here.