Complex - yet Simplified...
The Facade Patterns allows us to use a class with a simple interface to hide the complexity associated with more sophisticated and complex functions... An example of this is programming your VCR. Many people can't navigate the sequences necessary to program their VCR. The "facade pattern" for the VCR programming is the VCR+ programming tool, in which all you do is pop in the six digit number provided in the TV listing, and voila, all the programming is complete... That may be a dated example, but proves the point.
This pattern is also useful for reducing the dependencies objects have on each other, as well as reducing the amount of communication required between objects.
Additional links of interest include:
http://userpages.umbc.edu/~tarr/dp/lectures/Facade-2pp.pdf
No comments:
Post a Comment