Тёмный

Composite Design Pattern (C#) 

Raw Coding
Подписаться 71 тыс.
Просмотров 9 тыс.
50% 1

The composite design pattern explained with examples in code.
Patreon 🤝 / raw_coding
Courses 📚 learning.raw-coding.dev
Shop 🛒 shop.raw-coding.dev
Discord 💬 / discord
Twitter 📣 / anton_t0shik
Twitch 🎥 / raw_coding
Playlist: • c# design patterns
Source: github.com/raw-coding-youtube...
#csharp #composite #designpatterns

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

 

8 июл 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@pradeepdm6972
@pradeepdm6972 3 года назад
Channels like these is why I pay my broadband bills❤️. Thanks brother. Got what I was looking for.
@RawCoding
@RawCoding 3 года назад
Glad you like it
@nicolasfilizzola2443
@nicolasfilizzola2443 2 года назад
Thank you for all of the design pattern videos, it's been very helpful for studying for my test :))
@RawCoding
@RawCoding 2 года назад
Glad you enjoyed them
@joshuajones02
@joshuajones02 3 года назад
Thanks for the video!
@RawCoding
@RawCoding 3 года назад
Thank you for watching
@stefanioan7569
@stefanioan7569 3 года назад
Great video, as always 👍
@RawCoding
@RawCoding 3 года назад
Cheers )
@SuperEvoken
@SuperEvoken 2 года назад
i'm learning a ton from you.
@RawCoding
@RawCoding 2 года назад
Glad to hear
@rafaspimenta
@rafaspimenta Год назад
Your channel is a gem! Which book have you read about design patterns?
@priyanshu4016
@priyanshu4016 3 года назад
Very nice explain . but some what i feel lost in the example and missed the actual usage and applicability of the pattern. may be you can explain by taking example of sending mails as we can send mail to single user and group of users which having same functionality i.e send and group can contains nested group and members .
@RawCoding
@RawCoding 3 года назад
Eya, sorry the example didn’t help. Maybe one of these: Product Trees (table has legs, bolts etc...), Element Trees (html, xml elements contain other elements) permissions (build up bigger permissions out of smaller ones and re use bigger ones to build up even bigger permissions)
@Eugene.g
@Eugene.g 3 года назад
Матрёшка pattern! Hope you got Babushka pattern too
@RawCoding
@RawCoding 3 года назад
haha no babushka pattern sorry :P
@clearlyunwell
@clearlyunwell 3 года назад
👍🏽
@RawCoding
@RawCoding 3 года назад
)
@TheNorthRemember
@TheNorthRemember 2 года назад
when i create the composite class that returns a list of itself without interface it gives StackOverflow exception and i understand it's normal,, however, when the class implements interface like your example it doesn't throw the exception why?? i noticed that when using interface the list children would be created when they are called like lazy loading! so I think this is the reason,, but again why it's lazy loading when using interface ??
@RawCoding
@RawCoding 2 года назад
You'll need to show code example of what you are doing, an object referencing another object of same type shouldn't be a problem. Perhaps you are using static fields?
@TheNorthRemember
@TheNorthRemember 2 года назад
@@RawCoding literally like what you did in your linqpad, the result windwo has list representation and when you expand the child it has another list over and over.. this is the behavior I ask about why it doesn't give exceptions? try to remove the interface next to class name then the exception occurs
@RawCoding
@RawCoding 2 года назад
Make sure you are passing a new instance and now the same instance so you’ll have a circular reference
@hadibazmi6340
@hadibazmi6340 2 года назад
U are a masochist 😁
@RawCoding
@RawCoding 2 года назад
Everyone is a bit
Далее
Facade Design Pattern (C#, Microservices)
11:55
Просмотров 9 тыс.
Flyweight Design Pattern (C#)
12:02
Просмотров 7 тыс.
Who has won ?? 😀 #shortvideo #lizzyisaeva
00:24
The Bridge Design Pattern (C#)
8:31
Просмотров 11 тыс.
The Composite Pattern
24:38
Просмотров 2 тыс.
Monoid Design Pattern (C#)
14:03
Просмотров 5 тыс.
Prototype Design Pattern (C#)
12:30
Просмотров 16 тыс.
Dependency Injection, The Best Pattern
13:16
Просмотров 760 тыс.
Interpreter Design Pattern (C#)
10:06
Просмотров 5 тыс.
Flyweight Pattern - DESIGN PATTERNS (C#/.NET)
10:12
Просмотров 3,3 тыс.
Composite Pattern - Design Patterns (ep 14)
1:11:23
Просмотров 142 тыс.