Facade (TypeScript Design Patterns)

  Рет қаралды 19,343

Simply Explained

Simply Explained

Күн бұрын

Пікірлер: 15
@cesarfusco8927
@cesarfusco8927 9 ай бұрын
Best explanation i've found so far. Wish you'ld continue the series...
@sheacole1294
@sheacole1294 7 жыл бұрын
This was one of the more helpful explanations of the Facaded pattern that I have found. I would be interested in seeing this implemented in vanilla JavaScript in a real world application.
@Videosuser
@Videosuser 3 жыл бұрын
This was one of the more helpful explanations of the Facaded pattern that I have found(2)
@PROFjavi
@PROFjavi 7 жыл бұрын
hey! I like the way you did it but if anybody watching this wants to save some time you can just do this at the beginning instead.... I've commented out the boilerplate code, take a look at the differences in the constructor. class HomeTheaterFacade { // private bluray: BlurayPlayer; // private amp: Amplifier; // private lights : Lights; // private tv : TV; // private popcornMaker: PopcornMaker; constructor(private amp: Amplifier, private bluray: BlurayPlayer, private lights: Lights, private tv: TV, private popcornMaker: PopcornMaker) { // this.bluray = bluray; // this.amp = amp; // this.lights = lights; // this.tv = tv; // this.popcornMaker = popcornMaker; }
@ThePri1707
@ThePri1707 4 жыл бұрын
Amazing explanation Thanks a lot. Short. Sweet. Simple.
@kimslava93
@kimslava93 6 жыл бұрын
Hey there! Thanks for making so simple and cool videos. I have a small question, in your video you are using let even for the constant values, is there any reason why are you using let instead of const? Is there any best practice rule to do it in this way?
@simplyexplained
@simplyexplained 6 жыл бұрын
Best practice is indeed to use 'const' whenever you can. I apparently forgot to do that in this video. The code still works, but as you said, better to use const.
@hangchen6131
@hangchen6131 7 жыл бұрын
Haha this is actually more intuitive than decorator and observer, which actually I have already been using.
@remomagalhaes4707
@remomagalhaes4707 10 ай бұрын
Very nice indeed
@EdwinNiwaha
@EdwinNiwaha Жыл бұрын
You are the best
@mohameddaho5203
@mohameddaho5203 6 жыл бұрын
Great, thank you
@enriqueruiz320
@enriqueruiz320 2 жыл бұрын
😱😱😱
@rayaqin
@rayaqin 7 жыл бұрын
Why do these comments seem so fake?
@PROFjavi
@PROFjavi 7 жыл бұрын
? your comment seems the most fake/non-contexual... just saying.
Adapter (TypeScript Design Patterns)
5:47
Simply Explained
Рет қаралды 21 М.
Observer (TypeScript Design Patterns)
12:10
Simply Explained
Рет қаралды 29 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
State pattern  (TypeScript Design Patterns)
12:26
Simply Explained
Рет қаралды 23 М.
The Simplest Design Pattern: Facade
8:43
Bran van der Meer
Рет қаралды 4,9 М.
The Magic of TypeScript Decorators
9:51
Fireship
Рет қаралды 258 М.
Facade Pattern - Design Patterns
8:50
Web Dev Simplified
Рет қаралды 108 М.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 496 М.
Decorator Pattern (TypeScript Design Patterns)
9:11
Simply Explained
Рет қаралды 47 М.
TypeScript Factory Patterns (No BS TS Series 2 Episode 1)
22:07
Jack Herrington
Рет қаралды 36 М.
Javascript Design Patterns #6 - Proxy Pattern
12:11
DevSage
Рет қаралды 28 М.
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 910 М.
Design Patterns in Angular Source Code - Strategy Design Pattern
12:48
Decoded Frontend
Рет қаралды 18 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН