今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
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…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
-
(已锁定)
What are structural patterns?55 秒
-
(已锁定)
Module pattern5 分钟 54 秒
-
(已锁定)
Mixins pattern4 分钟 32 秒
-
(已锁定)
Facade pattern1 分钟 43 秒
-
(已锁定)
Flyweight pattern1 分钟 18 秒
-
(已锁定)
Decorator pattern2 分钟 16 秒
-
Model-View-Controller (MVC) pattern1 分钟 21 秒
-
Model-View-Presenter (MVP) pattern1 分钟 17 秒
-
(已锁定)
Model-View-ViewModel (MVVM) pattern1 分钟 25 秒
-
(已锁定)
-
-