Structural patterns
Facade
One simple entry point in front of a complicated subsystem.
Article
Facade – one simple entry point to a complex subsystem
Facade exposes one convenient operation that coordinates many subsystem classes behind the scenes. An example of course enrollment with payment, access and a welcome email in C#, TypeScript, Java, Go and Python.
Related articles
- Adapter – how to get along with code that speaks another language
Adapter translates the interface of a foreign class into the interface your code expects. An example of integrating a third-party geocoding SDK in C#, TypeScript, Java, Go and Python.
- Singleton – one instance, and the reasons to hand it to a DI container
Singleton guarantees that a class has exactly one instance available to the whole application. We show thread-safe implementations in five languages and explain why today it is usually better to…
- Proxy – a stand-in that controls access to the real object
Proxy has the same interface as the real object and stands in front of it, deciding when – and whether – to pass a call on. An invoice archive example with access control and a lazy connection in…
Challenges
Around the topic
- Facade Pattern – Design Patterns (ep 9) video · youtube · Christopher Okhravi
- Facade article · web · Refactoring.Guru
- Decorator vs. Facade Patterns & Knowing When To Use Them podcast · apple-podcasts · Developer Tea
- Proxy vs Adapter vs Facade Pattern | Code Walks 012 video · youtube · Christopher Okhravi
- Facade vs Proxy vs Adapter Design Patterns article · devto · Mohamed Mayallo
- Fasada / Facade article · web · Refactoring.Guru
- Design Patterns Part 4 – Adapter, Facade, and Memento podcast · apple-podcasts · Coding Blocks