Monday 3 July 2017

Software Engineering: Facade Pattern

Structural Pattern - Facade Pattern

Intent
Provides a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use. 

Why is this used?
A facade decouples a client from a complex subsystem. Whilst the Facade subsystem and uses delegation to perform the work of the facade.


UML diagram representation

https://www.tutorialspoint.com/design_pattern/facade_pattern.htm

Source code example

https://www.tutorialspoint.com/design_pattern/facade_pattern.htm
More to follow...

No comments:

Post a Comment

Software Engineering: Bad Smells! (Smelly code)

Bad Smells! What are bad smells? This refers to any symptom in the source code of a program that possibly indicates a deeper problem.  ...