Re: abstract factory -- a doubt ?



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



.



Relevant Pages

  • Re: delegation vs. inheritance
    ... "variance encapsulation" argument we might create a "purely ... I see that kind of "technical design" happen ... that another way of the technicians taking over design. ... Then about design patterns you comment ...
    (comp.object)
  • Re: For Sean Pitman: Review of "Meaningful Information"
    ... They are just looking for something that humans have an higher ... human-like design is not easily detectable. ... that all simple patterns are the result of intelligent design. ... What is 'informational complexity'? ...
    (talk.origins)
  • Re: (OT) Giving up on science [Was: Giving Up on Leopard]
    ... As you may know, both the Hebrew and ... of design that cannot be accidental or just coincidence. ... mathematical patterns run through the entire Bible, ... When you subtract a multiple of 7 from a multiple of 7 ...
    (comp.sys.mac.system)
  • Re: John Conways game of Life and order from chaos
    ... mathematically proven to be gardens of eden. ... designed patterns), but if I recall you don't really have any IDers ... instructive to calculate the CSI of a Garden of Eden pattern or two and ... functional information is not the hallmark of design as ...
    (talk.origins)
  • Re: The structure of PHP/Web Application coding.
    ... From your mentioning of Design Patterns i assume you want to/are practicing OOP. ... Refactoring should start allmost immediately from the start of any project and is to be done so frequently that it comes close to being done "all te time". ... IMHO a framework is simply the outcome of applying the principles of XP over the development of several similar applications. ...
    (comp.lang.php)