Тёмный
No video :(

Facade Design Pattern in c# | When to use Facade Design Pattern | Facade Design Pattern | Part 11 

Code With RaiGenics
Подписаться 2,5 тыс.
Просмотров 6 тыс.
50% 1

Опубликовано:

 

5 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 16   
@indian7082
@indian7082 3 месяца назад
Super & simple way explanation
@hotmail4usa
@hotmail4usa 8 месяцев назад
Great content, thank you
@sreenut2361
@sreenut2361 2 года назад
one of the simple and best video on design pattern very easy to understand
@RaiGenics
@RaiGenics 2 года назад
Thanks for sharing the feedback!
@MohanPatil_Software_Engineer
@MohanPatil_Software_Engineer 2 года назад
Nice and easy explanation of the complex topic
@RaiGenics
@RaiGenics 2 года назад
Thanks
@JoseAlvarez-dl3hm
@JoseAlvarez-dl3hm Год назад
So, can you say the repository pattern is a direct application of the facade pattern? I found a lot of similarities in them.
@toekneema
@toekneema 3 года назад
finally a dark themed IDE HAHAHAHA
@asitkumarmohanty2579
@asitkumarmohanty2579 3 года назад
Hi Dude, great content. I have gone thorugh most of the design patterns now. Please share the source code for Facade, Proxy design pattern. Thanks in Advance :)
@RaiGenics
@RaiGenics 3 года назад
here we go - Facade: github.com/raigenics/FacadeDesignPattern.git Proxy: github.com/raigenics/ProxyDesignPattern.git Thanks for sharing the feedback !
@anushaf1824
@anushaf1824 2 года назад
Why did you create the interface loginfacade in different library . Can you please elaborate? Thanks
@RaiGenics
@RaiGenics 2 года назад
There is no specific reason for creating the facade in a separate library, you can of course have it in the same library as well. The only reason here is to separate the client component completely.
@rishabraina4406
@rishabraina4406 3 года назад
What is the need for creating interfaces here in each component
@RaiGenics
@RaiGenics 3 года назад
this is a sample implementation to understand facade - our login module interacts with multiple components and facade hides the complexity of interacting with those components. That way the login module implementor just needs to know about the facade interface and doesn’t need to know about the business complexity that facade deals with. I hope that was pretty much clear in the video. The idea behind introducing interface is that it helps in designing a loosely coupled application where if the authentication component developer wish to add some more authentication logic in future, then it can always do that without impacting the client. The application will work seamlessly as long as the interface definition does not change. But, off course we could have even implemented facade with concrete classes as well (without interface) btw, I have just used 1 interface per component here, but in real-time the system could be quite complex with many dependencies consisting many interfaces. There are many advantages of using interface - watch these 3 videos, I have explained 3 prominent advantage of using interface - IOC Container & DI : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-PAO9fAzz-GM.html writing testable code : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-mIVAhH9J60c.html loosely coupled app : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-tKJY5icC4eM.html
@rishabraina4406
@rishabraina4406 3 года назад
private readonly ILoginFacade _loginFacade; public HomeController() { _loginFacade = new LoginFacade(); } why didnt we use the above the code;
@RaiGenics
@RaiGenics 3 года назад
creating an instance with “new” keyword everywhere in your application makes your application tightly coupled. That’s where we use containers which takes the responsibility of creating an instance of our classes and gives us whenever required. Here this code block "services.AddSingleton();" adds our class to the container and gives it to our controller whenever it ask for. We are doing a constructor injection here. Please read about dependency injection You can get good in this video: IOC Container & DI : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-PAO9fAzz-GM.html Let me know if you have any further question, I will be happy to to clarify
Далее
C# Observer Pattern Example
14:10
Просмотров 31 тыс.
A Minecraft Movie | Teaser
01:20
Просмотров 20 млн
Cristiano Ronaldo Surpassed Me! #shorts
00:17
Просмотров 10 млн
Don't throw exceptions in C#. Do this instead
18:13
Просмотров 257 тыс.
Simplest Decorator Design Pattern in C#
10:55
Просмотров 25 тыс.
The Most Legendary Programmers Of All Time
11:49
Просмотров 555 тыс.
When RESTful architecture isn't enough...
21:02
Просмотров 275 тыс.
Facade Pattern - Design Patterns
8:50
Просмотров 104 тыс.
Jonathan Blow on how an operating system should work
14:22