From the course: JavaScript: Patterns
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Facade pattern - JavaScript Tutorial
From the course: JavaScript: Patterns
Facade pattern
- [Instructor] What is a facade? It is basically the pattern of hiding complexity away by creating a facade for the complex code. So if you are thinking, wait, what? That's absolutely normal. If you're a React developer, or building components, you've been using facades every day. When you're building your component in any framework, you code the complexity of this component into a module, or file, and then leverage a simple line to render this component into your code. Well, this is what the facade pattern is. Grab the code from the React folder into the exercise files, and let's go through the components quickly so the facade pattern you have been using all this time makes a lot more sense. So let's open this folder, and in the resources you have a React application. Simply drag and drop it inside of Visual Studio Code, and I'm going to maximize this, and you have facades everywhere in React code, or Anguler, or any…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
What are structural patterns?55s
-
(Locked)
Module pattern5m 54s
-
(Locked)
Mixins pattern4m 32s
-
(Locked)
Facade pattern1m 43s
-
(Locked)
Flyweight pattern1m 18s
-
(Locked)
Decorator pattern2m 16s
-
Model-View-Controller (MVC) pattern1m 21s
-
Model-View-Presenter (MVP) pattern1m 17s
-
(Locked)
Model-View-ViewModel (MVVM) pattern1m 25s
-
(Locked)
-
-