The Simplest Design Pattern: Facade

  Рет қаралды 3,179

Bran van der Meer

Bran van der Meer

Күн бұрын

0:00 The Facade pattern
1:42 Example 1: CryptoFacade
3:43 Example 2: Dates and Times
6:09 Example 3: Resizing Videos

Пікірлер: 15
@marcwinner567
@marcwinner567 2 ай бұрын
This is actually the best explanation of the Facade pattern I have stumbled upon. Well done sir!
@Pareshbpatel
@Pareshbpatel 3 күн бұрын
The Facade Design Pattern, so beautifully explained. Thank you very much. {2024-07-01} - Subscribed!
@BiiigBeee
@BiiigBeee 7 ай бұрын
Bran, I love your content man. The high level explanation, your pace, the video quality and finally the music that for once on KZfaq serves the content and just sooth you. Minor mode for major goal 😉 Best of luck for the future my friend
@lpanebr
@lpanebr 6 ай бұрын
This is by far the best ever explanation for the facade pattern. Thank you!
@regensdorfskater
@regensdorfskater 6 ай бұрын
Love the seek discomfort shirt!
@ahmedsamir1601
@ahmedsamir1601 7 ай бұрын
Perfect 👌
@winkbrace
@winkbrace 7 ай бұрын
Very good explanation. Maybe a music peace in minor is not the best fit for your relaxed voice, tho. It sounds like you're going to announce something sad. ;)
@chimbu4822
@chimbu4822 7 ай бұрын
Nice, If possible please try to make other design pattern videos also.
@kerrykreiter445
@kerrykreiter445 6 ай бұрын
Thank you for sharing this pattern. I am wondering if this pattern might apply to audio. I like how easy it is to use html/css/JavaScript to build a GUI. But using the web audio API has some limitations that make game dev difficult. Maybe a facade would help??
@muhammadfahad3483
@muhammadfahad3483 Ай бұрын
How can I recognize a facade pattern?
@benflightart
@benflightart 6 ай бұрын
What is the difference between a facade and an API? Thanks
@branvandermeer
@branvandermeer 6 ай бұрын
Everything has an Interface. The interface of a function is it's name, it's arguments and it's return types. The interface of a TV is it's remote control, and the interface of a car is it's steering wheel, gas/break pedals, etc. When using it like intended, we don't directly interact with the internals of a TV (circuitry), nor with the internals of a car (engine). I have a video on Interface-First Programming if you want to know more. You can think of the interface as the thing you are interacting with, which is different from the things that are behind that, which you are not directly interacting with. The interface exists because it enables a use-case: the engine of a car can run by itself, but it's not useful yet, just as a TV can run without a human watching it, but that's not useful. We added a steering wheel to an engine because humans are using the engine for a very specific thing; going somewhere. The interface encodes it's use-case. A Facade is an extra layer (an extra interface) in between a call site and an implementation (e.g. a function, file, class, or service). This extra layer can be there because you don't like the interface that the implementation offers by itself, or it can be there because you don't want to directly depend on the interface of the implementation. A Facade has, like all functions/classes/files, also an interface: it's names, arguments, return types, etc. Anything you directly interact with from the call site.
@benflightart
@benflightart 6 ай бұрын
@@branvandermeer So, if i were to program an extra layer between the firebase API and my web app because I didn't like the convoluted process for image uploads and wanted to simply function calls with a one time configuration, that would be a facade.
@branvandermeer
@branvandermeer 6 ай бұрын
@@benflightart yes!
@benflightart
@benflightart 6 ай бұрын
@@branvandermeer thanks for helping me understand!
Why TDD with UI code is hard
14:59
Bran van der Meer
Рет қаралды 661
Dependency Injection, simplified
9:55
Bran van der Meer
Рет қаралды 3,8 М.
NERF WAR HEAVY: Drone Battle!
00:30
MacDannyGun
Рет қаралды 41 МЛН
DO YOU HAVE FRIENDS LIKE THIS?
00:17
dednahype
Рет қаралды 54 МЛН
small vs big hoop #tiktok
00:12
Анастасия Тарасова
Рет қаралды 29 МЛН
How To Reduce Coupling With Facade | Design Pattern Tutorial
28:29
The future of software engineering
7:10
Bran van der Meer
Рет қаралды 2 М.
Ubiquitous Language, simplified
9:25
Bran van der Meer
Рет қаралды 949
3 Simple Hacks to Stay Up-to-date as a Developer
7:32
Bran van der Meer
Рет қаралды 1 М.
Facade Pattern - Design Patterns (ep 9)
16:19
Christopher Okhravi
Рет қаралды 178 М.
Spring Tips: Spring Modulith
37:39
SpringDeveloper
Рет қаралды 15 М.
Inversion of Control, simplified
10:22
Bran van der Meer
Рет қаралды 3,7 М.
How to run a Post-Mortem meeting, step-by-step
8:03
Bran van der Meer
Рет қаралды 719
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
Alex Hyett
Рет қаралды 200 М.
How to CQS: splitting the Read from the Write
11:52
Bran van der Meer
Рет қаралды 1 М.
Игровой Комп с Авито за 4500р
1:00
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 1,8 МЛН
Ультрабюджетная игровая мышь? 💀
1:00
cute mini iphone
0:34
승비니 Seungbini
Рет қаралды 6 МЛН