Re: Measuring OO Reuse



as to this problem:

> b. NDepend can tell me when one method depends on another method, but
> if we're binding to an abstraction, how can I tell which implementation
> is actually being reused?

If you bind to an abstraction, then you are reusing all components that can
make use of that abstraction independently of their implementations.

In other words, if you have an app that uses an interface and uses an
abstract factory to create the instance of the object, then you get reuse of
all modules that bind to that interface as long as they use the factory to
create instances, for each new concrete implementation of the interface.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--


.



Relevant Pages

  • Re: object system...
    ... for that you need machine language. ... there are many other cases where "abstraction" can be leveraged to the ... never have an interface to access not doing something. ... based on class systems rather than type systems. ...
    (comp.object)
  • Re: object system...
    ... in order to use abstraction as self-target. ... Note that an object is defined by its responsibilities. ... never have an interface to access not doing something. ... The 3GL type systems are a compromise with the hardware computational models. ...
    (comp.object)
  • Re: Adding abstract class...
    ... What is the difference between abstract and interface class? ... It depends on what camp you are in as to how you approach OO. ... The same tends to happen with an abstraction. ... For example I might use a pencil for writing or for digging the dirt ...
    (comp.object)
  • Re: OOP/OOD Philosophy
    ... > direction of dependencies along the axis of level of abstraction. ... I do not answer questions on behalf of my employer. ... programmer helping programmers. ...
    (comp.object)
  • Re: Adding abstract class...
    ... What is the difference between abstract and interface class? ... The technical camp based on the approach developed ... The same tends to happen with an abstraction. ... > For example I might use a pencil for writing or for digging the dirt ...
    (comp.object)