Re: Breaking the Last Dependency in C++?




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.

.



Relevant Pages

  • Re: Any good URL about Java and AJAX?
    ... > The technique is old, implemented with hidden iframes, but these days ... That would indeed be where Java gets involved. ... way for the JavaScript in the page to make calls to Java methods or ... I've written a framework for JSF that allows JavaScript to make ...
    (comp.lang.java.programmer)
  • Re: Abstract methods in ruby ?
    ... > How do you implement something like the "abstract" keyword in Java? ... Is there a technique to force a subclass to implement a special ...
    (comp.lang.ruby)
  • Re: Why only 2,000 simultaneous threads ?
    ... it's about 250ms in java for 2000 threads. ... technique. ... This seems to happen even before the .join on the members of the thread ... array. ...
    (microsoft.public.dotnet.general)
  • Re: [Full-disclosure] JavaScript get Internal Address (thanks to DanBUK)
    ... I worked on something similar, it uses Java in the same way, but also uses ... a custom DNS server to obtain even more information: ... The following technique was brought to me by DanBUK ... Upon success the socket populates its structure ...
    (Full-Disclosure)
  • Re: SortedList: best practices with java 1.5
    ... What is the best practices way to implement a SortedList with Java 1.5? ... I saw the technique using Collections.binarySearchmethod to identify ... googling and searching of this group without finding any RECENT ...
    (comp.lang.java.programmer)