Re: Program to an Interface not an implemetation
- From: "Nick Malik [Microsoft]" <nickmalik@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 26 Sep 2005 07:50:25 -0700
"Will" <billreyn@xxxxxxxxxxx> wrote in message
news:1127405086.536898.282310@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>I am looking at the Gang of Four
> Design Patterns and wondering
> about the advice 'Program to
> an Interface, not an implementation'.
I sure hope that this question is based upon the fact that you have just
started taking a long look at patterns. If so, great. It is a toolkit that
can make OO development much more effective. However, I sure hope you
aren't starting with the GoF book! It's essentially a doctoral thesis. If
you want to actually learn how OO patterns are used in context, pick up a
book like "Design Patterns Explained" by Shalloway.
Your examples show, to me, that you do not understand how encapsulation is
enabled by interface.
> Does any person know what the present thinking
> is since the gang of 4? Have we moved on and
> upwards. What is the latest
> bees knees in OO thinking. Or are we back to
> every application should be considered on its
> own merits. (i.e. hack it together in 1 week)
>
I refuse to speak for the community. In my opinion, current design
discussion tends towards describing systems as (potentially) distributed
components in a loosly coupled infrastructure. The components themselves
are developed to take on coarse-grained but atomic responsibilities. They
share code by using common frameworks. The frameworks are built largely on
the GoF design patterns and much of the work that followed.
I've seen lots of discussion about cross-cutting concerns and AoP. Lots of
discussion about process (as always) with Agile methods taking the center
stage (and the heat) in the past few years.
I do not know of anyone who thinks you should hack.
--
--- 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.
--
.
- References:
- Program to an Interface not an implemetation
- From: Will
- Program to an Interface not an implemetation
- Prev by Date: Re: UML Modeling Tool like Enterprise Architect
- Next by Date: Re: Interface complexity problem in game
- Previous by thread: Re: Program to an Interface not an implemetation
- Next by thread: weak contract
- Index(es):
Relevant Pages
|