Re: OOP/OOD Philosophy
- From: Robert C. Martin <unclebob@xxxxxxxxxxxxxxxx>
- Date: Wed, 13 Jul 2005 20:43:52 -0500
On 13 Jul 2005 02:10:11 -0700, ggroups@xxxxxxxxxxx wrote:
>Mark Nicholls wrote:
>
>> I would expect some notion of structural encapsulation to need to
>> exist...i.e. the object, and probably composite behavioural
>> encapsulation...i.e. the interface.
>
>> objects + interfaces = OO.
>
>> or
>
>> structural encapsulation + behavioural encapsulation = OO
>
>> seems better to me.
>
>> I think OO needs statefull objects, else it is just procedural.
>
>ADT = interface + encapsulation + implementation hiding
>Object-Based = ADT + self-reference
>Object-Oriented = Object-Based + Inheritance
>
>Very succinct. Very precise.
I agree that this are succinct and precise definitions. Furthermore,
I don't have any problem with the first two. However, the third (OO)
bothers me because it lacks intent. To me, OO is much more about
intent, than about inheritance.
On a pickier point, I think the definition above puts far too much
emphasis on inheritance. Indeed, I think it was written by someone
who was used to statically typed languages and therefore thought that
polymorphism and inheritance were inextricably linked. I would be
much happier (though I would still have the issue of intent) with the
above definition if it were stated as:
Object-Oriented = Object-Based + Dynamic Polymorphism.
-----
Robert C. Martin (Uncle Bob) | email: unclebob@xxxxxxxxxxxxxxxx
Object Mentor Inc. | blog: www.butunclebob.com
The Agile Transition Experts | web: www.objectmentor.com
800-338-6716
"The aim of science is not to open the door to infinite wisdom,
but to set a limit to infinite error."
-- Bertolt Brecht, Life of Galileo
.
- Follow-Ups:
- Re: OOP/OOD Philosophy
- From: Isaac Gouy
- Re: OOP/OOD Philosophy
- References:
- Re: OOP/OOD Philosophy
- From: Mark Nicholls
- Re: OOP/OOD Philosophy
- From: Robert C . Martin
- Re: OOP/OOD Philosophy
- From: Mark Nicholls
- Re: OOP/OOD Philosophy
- From: ggroups
- Re: OOP/OOD Philosophy
- Prev by Date: Re: Power of OOD, silver bullet and you
- Next by Date: Re: OOP/OOD Philosophy
- Previous by thread: Re: OOP/OOD Philosophy
- Next by thread: Re: OOP/OOD Philosophy
- Index(es):
Relevant Pages
|