Re: Breaking the Last Dependency in C++?
- From: iamfractal@xxxxxxxxxxx
- Date: 28 Sep 2005 01:56:44 -0700
Daniel Parker skrev:
> > -------
>
> This is a fairly common technique technique in Java, the XML parser and
> XSLT transformer factories, for example, all work this way.
OT and FWIW, I've never been a fan of the presentation of this
technique in isolation. It seems to enthrone de-coupling as the One
True Goal without considering other benefits and aims. It's a little
one-dimensionalist. You could, after all, decouple every class from
every other, in Java, using this technique, but that would hardly give
you a cost-effective product.
I think this technique is great:
A) If you're delivering closed software, that you clients can't
recompile, yet want to deliver extensibility nonetheless.
B) When you fully expect the Factory class's out-going switch statement
to grow well beyond double figures, fairly quickly, and fairly
erratically.
Just a thought.
..ed
--
www.EdmundKirwan.com - Home of The Fractal Class Composition.
.
- References:
- Breaking the Last Dependency in C++?
- From: Joerg Simon
- Re: Breaking the Last Dependency in C++?
- From: Daniel Parker
- Breaking the Last Dependency in C++?
- Prev by Date: Re: Factory pattern and building object
- Next by Date: Re: Strategy or A factory with Template Method
- Previous by thread: Re: Breaking the Last Dependency in C++?
- Next by thread: data and interfaces
- Index(es):
Relevant Pages
|