Re: How to motivate use of OO?
- From: Bruno Desthuilliers <bdesth.quelquechose@xxxxxxxxxxxxxxxxxxx>
- Date: Mon, 10 Jul 2006 00:22:32 +0200
topmind a écrit :
(snip)
I've studied the patterns of changes and variation re-occurance that I
see over the years.
Great.
I have concluded
Where can we read the demonstration (I mean, a logical, rational, well-backed one) that led to this conclusion ?
that the generation/creation
patterns of variations tend to be a *Cartesian Join* of all possible
features. There may be *some* rough treeness, but not enough to rely on
in the longer run.
Let's take it as an axiom until you answer the previous question.
Thus, say there are 26 total features, and we label them from A to Z.
The variations would then tend to be random subsets of the features:
"tend to" ? "random" ?
instance 1: A,C,R,Q,V,Y
instance 2: D,J,L
instance 3: C,G,R,T,V,Z
instance 4: E,F,K,L,M,P,R
etc.....
So, please tell me how OO deals with such.
Nope. *You* tell us how *you* deal with such.
The procedural/relational approach is generally to put the feature
lists in tables, and then a task will tend to look something like:
Task Foo(...) {
if A {....}
if B {
if K {...
} else {
...
}
}
...
if Y {....}
if Z and not M {....}
}
....
OMG
It ain't pretty,
That's an understatement.
but I have not found something better.
What can I say ? Evidence speaks for itself...
Further, the IF
structure tends not to be the same from task to task.
And ?
Polymorphic
solutions tend to assume
"tend to assume" ?
the same IF "framework" for each different
task,
Care to explain ?
.
- Follow-Ups:
- Re: How to motivate use of OO?
- From: topmind
- Re: How to motivate use of OO?
- References:
- How to motivate use of OO?
- From: nassegris
- Re: How to motivate use of OO?
- From: Ed Kirwan
- Re: How to motivate use of OO?
- From: frebe73
- Re: How to motivate use of OO?
- From: topmind
- Re: How to motivate use of OO?
- From: Robert Martin
- Re: How to motivate use of OO?
- From: topmind
- Re: How to motivate use of OO?
- From: Robert Martin
- Re: How to motivate use of OO?
- From: topmind
- Re: How to motivate use of OO?
- From: Robert Martin
- Re: How to motivate use of OO?
- From: topmind
- How to motivate use of OO?
- Prev by Date: Re: Writing programs with GUI
- Next by Date: Re: Writing programs with GUI
- Previous by thread: Re: Variations and Reuse
- Next by thread: Re: How to motivate use of OO?
- Index(es):
Relevant Pages
|