Re: OO Design induces an existential crisis
- From: AndyW <foo_@xxxxxxxxxxxxxxxx>
- Date: Sat, 30 Jul 2005 00:25:32 +1200
On Fri, 29 Jul 2005 07:03:19 GMT, <adaworks@xxxxxxxxxxxxx> wrote:
>
>"AndyW" <foo_@xxxxxxxxxxxxxxxx> wrote in message
>news:kmree1t4emdsqbin8pv9bmfr86ouo7cddv@xxxxxxxxxx
>>
>> You have described an abstraction by calling it a container not an
>> object. The purpose of the discussion is to be able to tell the
>> difference and once thus knowing the difference being able to modle
>> them using different techniques.
>>
>The object you were describing is a container. Containers are one
>of the most common objects in OOP. It is not improper to ask what
>kind of object is it.
>
A container is not an object, its an abstraction. If you dont agree
then tell me why it isnt and then point out some real world instances
of containers.
>Each object has changeable attributes and non-changeable attributes.
>The color of the container is probably non-changeable. If so, we
>don't need methods related to color. The handle does not change.
>Therefore we don't need methods for the handle. The state of
>the container does change. It either contains something or it does
>not. We need methods to reflect that.
>
>Software is about change. If nothing changes, there is usually no
>point in creating a software object. OOP is about encapsulating
>that change and providing an interface (public methods) to effect
>and inspect those changes. If nothing changes, we don't need
>methods. Does the handle change? Probably not.
>
>Failure to understand the importance of change, how to reflect
>change, and how to design for change, is a fundamental problem
>for novices in object technology. It seems this is also a frequent
>problem for those who have a long experience with object
>technology.
>
>Once this is understood, there is no existential crisis.
>
>Richard Riehle
>
.
- Follow-Ups:
- Re: OO Design induces an existential crisis
- From: adaworks
- Re: OO Design induces an existential crisis
- References:
- Re: OO Design induces an existential crisis
- From: adaworks
- Re: OO Design induces an existential crisis
- Prev by Date: Re: OO Design induces an existential crisis
- Next by Date: Re: OO Design induces an existential crisis
- Previous by thread: Re: OO Design induces an existential crisis
- Next by thread: Re: OO Design induces an existential crisis
- Index(es):
Relevant Pages
|