Re: Separation of concerns
- From: "topmind" <topmind@xxxxxxxxxxxxxxxx>
- Date: 28 Mar 2007 08:20:08 -0700
On Mar 28, 8:01 am, "Thomas Kowalski" <t...@xxxxxx> wrote:
Hi everyone,
I am currently quite confused about the separation of concerns things
and search here for enlightenment.
I have some classes. lets say A and B that shall implement a certain
interface (e.g. Drawable).
Now it would not be very nice if A and B would implement then directly
or?
Should I subclass like A_Draw and B_Draw or what is the current
pattern to solve this?
Thanks a lot in advance,
Thomas Kowalski
"Separation of concerns" is a buzz-word that so far has very little
consistency and rigor. Plus, in reality it is hard to separate
everything because real-world apps have to model real-world
relationships, which are often intertangled by their nature. Often
there is a tradeoff between separating one factor at the expense of
another. It is rarely a free lunch.
Further, sometimes heavy separation creates beurocratic software. You
have to weigh tradeoffs using experience. It is relatively easy to get
software to work without experience, but experience is necessary to
future-proof software (or at least make it reasonably maintainable).
My advice is to keep an eye on potential future change, but keep it
simple. If you don't keep it simple and a future change comes along
that you failed to anticipate (you guessed the wrong kinds of
changes), then software is often harder to change than if you didn't
do any future-proofing but kept it simple. Thus, it is ofter more
benefitial to ponder how to obtain simplicity than to ponder what to
isolate for estimated future changes. Isolation is like a rifle, where
simplicity is like a shot-gun: you don't have to aim at the future as
accurately to get benefits from simplicity.
-T-
.
- Follow-Ups:
- Re: Separation of concerns
- From: throatslasher
- Re: Separation of concerns
- References:
- Separation of concerns
- From: Thomas Kowalski
- Separation of concerns
- Prev by Date: Re: OO and Extending (Was: Is Procedural Paradigm a basis of OO Paradigm?)
- Next by Date: Re: Design pattern to sync objects
- Previous by thread: Separation of concerns
- Next by thread: Re: Separation of concerns
- Index(es):
Relevant Pages
|