Skip to content

Files

Latest commit

c3e2f5d · Sep 22, 2023

History

History

Source

https://refactoring.guru/design-patterns/facade

Important:

  1. Facade is a structural design pattern that provides a simplified interface to a library, a framework, or any other complex set of classes.
  2. A single class that represents an entire subsystem

Description

Structure

alt tag

How to use

  1. Use the Facade pattern when you need to have a limited but straightforward interface to a complex subsystem.
  2. Use the Facade when you want to structure a subsystem into layers.

How to implement

https://refactoring.guru/design-patterns/facade#checklist

Running

python main.py
python example.py