View Single Post
Old Sep 16th, 2007, 7:22 PM   #26
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
I don't worry a lot about inheritance, since no one saw fit to leave me a fortune. On the other hand, I have to disagree with you about OOP. Perhaps some wannabe gurus have misled you.

Objects are objects. Procedures are procedures. Your lawn is an object, a particular instantiation of a generic lawn. Your lawnmower is an object, a particular instantiation of a generic lawnmower with its own subtly different instantiations of carburetors, throttle linkages, and kill-switches.

Mowing your lawn is a procedure. Maybe it's even a method of the lawn, but it shouldn't be a method of the mower. It might not even be a good method for the lawn object, because you never know who left a freakin' skateboard right in the middle of that sucker.

I would suggest that if you have found OOP to be a detriment, then you have had the wool pulled over your eyes by a supremely ignorant someone. Perhaps you should regroup.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote