Re: abstract factory -- a doubt ?
- From: "H. S. Lahman" <h.lahman@xxxxxxxxxxx>
- Date: Wed, 26 Apr 2006 13:04:17 GMT
Responding to Viveklinux...
new to OO and was wondering what other kind of design principle
violations does an Abstract Factory prevent other than OCP ?
I don't think preventing design principle violations is the purpose of design patterns. Patterns provide an elegant and -- at least conceptually -- reusable solution to broad classes of complex problems. (A secondary benefit is that they provide better communication of designs as a sort of lingua franca.)
For example, almost all of the GoF patterns address variations of a single problem. They implement relationships whose participation is too dynamically complex to capture in a simple <static> association. In doing so the patterns use good OO practices like delegation and polymorphic dispatch, which supports robust designs. But that is pretty much a byproduct.
*************
There is nothing wrong with me that could
not be cured by a capful of Drano.
H. S. Lahman
hsl@xxxxxxxxxxxxxxxxx
Pathfinder Solutions -- Put MDA to Work
http://www.pathfindermda.com
blog: http://pathfinderpeople.blogs.com/hslahman
(888)OOA-PATH
.
- References:
- abstract factory -- a doubt ?
- From: viveklinux
- abstract factory -- a doubt ?
- Prev by Date: Re: Question on LSP
- Next by Date: Re: Class design question
- Previous by thread: Re: abstract factory -- a doubt ?
- Next by thread: OMG's Real-time and Embedded Workshop, July 10-13, 2006, Arlington, VA
- Index(es):
Relevant Pages
|