Facade Pattern - Design Patterns in JavaScript

Опубликовано: 04 Апрель 2022
на канале: TomDoesTech
4,607
116

Repository: https://github.com/TomDoesTech/js-des...

The facade pattern is analogous to a facade in architecture, it is pretty on the outside and hides the underlying complexity

The facade pattern helps mask the complexity of underlying code, provides a single interface to a set of interfaces, and can help make complex code more context-specific.

Why not use a facade pattern? Facades can become "God objects" that are too complex to use.

Examples of a facade pattern
Backend for frontend (BFF) layer - Join multiple services together to server a UI
An external-facing API - Make a complex internal API more user-friendly with a facade

0:00 Intro
0:41 Why use a facade pattern?
1:11 Citisisms on the facade pattern
1:29 Examples of the facade pattern
2:12 JavaScript example

🌎 Follow me here:
Discord:   / discord  
Twitter:   / tomdoes_tech  
Facebook:   / tomdoestech​  
Instagram:   / tomdoestech​  
TikTok:   / tomdoes_tech  
☕ Buy me a coffee: https://www.buymeacoffee.com/tomn


На этой странице сайта вы можете посмотреть видео онлайн Facade Pattern - Design Patterns in JavaScript длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь TomDoesTech 04 Апрель 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 4,607 раз и оно понравилось 116 зрителям. Приятного просмотра!