Re: OO Design induces an existential crisis
- From: "topmind" <topmind@xxxxxxxxxxxxxxxx>
- Date: 26 Jul 2005 21:57:42 -0700
adaworks@xxxxxxxxxxxxx wrote:
> "topmind" <topmind@xxxxxxxxxxxxxxxx> wrote in message
> news:1121703637.780045.280310@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> >
> >
> > And, some of the are vague, such as Open-Closed Principle.
>
> There is nothing vague about the Open-closed principle. It is easy
> to understand, easy to implement, and makes the software solution
> easy to extend at some later time.
>
> Open = the design modules are open to easy extension
> Closed = the design modules are closed so they cannot be easily corrupted
>
> This is not simply a principle of object-oriented programming. It has its roots
> in the work of John V Guttag and his dissertation on abstract data types. But
> then, you probably take issue with the value of ADT's, as well.
Using "types" for business modeling has been a common complaint of
mine. Stepanov has made similer complaints about the lack of
multi-factor-handling of "types".
Perhaps I should qualify this better. It perhaps is the *examples* of
Open-Close that were poor rather than the principle itself. (Criticism
of the examples was already given.)
Nothing non-trivial can escape opening when some kinds of changes
happen, at least in my domain. It is a matter of weighing
probabilities. To make software change-friendly, you have to be able to
estimate which direction change will like happen and engineer for such
change, or at least prepare for it. No paradign gives a free lunch in
this area so far. And, polymorphism does not seem to be the "trick"
either, at least not beyond shapes, animals, and device-drivers.
>
> Richard Riehle
-T-
.
- References:
- OO Design induces an existential crisis
- From: kj
- Re: OO Design induces an existential crisis
- From: Rick Elbers
- Re: OO Design induces an existential crisis
- From: kj
- Re: OO Design induces an existential crisis
- From: Rich MacDonald
- Re: OO Design induces an existential crisis
- From: topmind
- Re: OO Design induces an existential crisis
- From: Nick Malik [Microsoft]
- Re: OO Design induces an existential crisis
- From: topmind
- Re: OO Design induces an existential crisis
- From: Nick Malik [Microsoft]
- Re: OO Design induces an existential crisis
- From: topmind
- Re: OO Design induces an existential crisis
- From: Nick Malik [Microsoft]
- Re: OO Design induces an existential crisis
- From: topmind
- Re: OO Design induces an existential crisis
- From: Nick Malik [Microsoft]
- Re: OO Design induces an existential crisis
- From: topmind
- Re: OO Design induces an existential crisis
- From: Nick Malik [Microsoft]
- Re: OO Design induces an existential crisis
- From: topmind
- Re: OO Design induces an existential crisis
- From: adaworks
- OO Design induces an existential crisis
- Prev by Date: Re: Paralyzed by TDD
- Next by Date: Re: Repositories, package dependencies, and domain-flavoured exceptions
- Previous by thread: Re: OO Design induces an existential crisis
- Next by thread: Re: OO Design induces an existential crisis
- Index(es):