Skip to content
Discussion options

You must be logged in to vote

Facade is a structural design pattern that provides a simplified interface to a library, a framework, or any other complex set of classes.

Problem

Imagine that you must make your code work with a broad set of objects that belong to a sophisticated library or framework. Ordinarily, you’d need to initialize all of those objects, keep track of dependencies, execute methods in the correct order, and so on.

As a result, the business logic of your classes would become tightly coupled to the implementation details of 3rd-party classes, making it hard to comprehend and maintain

Solution

A facade is a class that provides a simple interface to a complex subsystem which contains lots of moving parts…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by JosephCalla
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants