Re: Measuring OO Reuse
- From: "Nick Malik [Microsoft]" <nickmalik@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 18 Jul 2005 08:46:15 -0700
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.
--
.
- Follow-Ups:
- Re: Measuring OO Reuse
- From: jasongorman
- Re: Measuring OO Reuse
- References:
- Measuring OO Reuse
- From: jasongorman
- Measuring OO Reuse
- Prev by Date: Re: OO Design induces an existential crisis
- Next by Date: Re: Measuring OO Reuse
- Previous by thread: Measuring OO Reuse
- Next by thread: Re: Measuring OO Reuse
- Index(es):
Relevant Pages
|