Тёмный

The Composite Pattern 

Coding Tutorials
Подписаться 14 тыс.
Просмотров 2,1 тыс.
50% 1

What's the difference between a tree, a trunk, a branch, a twig and a leaf? With the Composite Pattern, very little.
Source code available at: github.com/JasperKent/The-Com...

Наука

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

 

1 апр 2021

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 18   
@CodingTutorialsAreGo
@CodingTutorialsAreGo 3 года назад
Any more patterns you'd like to know about? Get in touch. Source code at: github.com/JasperKent/The-Composite-Pattern Remember to subscribe at ru-vid.com/show-UCqWQzlUDdllnLmtgfSgYTCA And if you enjoyed it, don't forget to click the button.
@rustamhajiyev
@rustamhajiyev 3 года назад
Sir, your tutorials are simply magnificent! I've already watched more than half of all your videos in one go and I just can't stop, you're an amazing teacher. Your channel deserves many times more subscribers and the least I can do to thank you is to share my find with my friends.
@CodingTutorialsAreGo
@CodingTutorialsAreGo 3 года назад
Thanks. All you can do is spread the word.
@20gg99
@20gg99 2 года назад
Finally someone explain it nicely. You save my life!
@nickbarton3191
@nickbarton3191 8 месяцев назад
Excellent, very understandable.
@Schnickalodeon
@Schnickalodeon 3 года назад
Very good understandable explanation of this pattern - I like :) Just a tipp: You could use STRG + D to Duplicate a line instead of selecting it and then do CopyPaste (Just in case you don't know that shortcut)
@NillKitty
@NillKitty 3 года назад
Your windows username (or at least your profile directory) is missing the 'r'. But I'm sure you knew that.
@CodingTutorialsAreGo
@CodingTutorialsAreGo 3 года назад
It's a common problem: answers.microsoft.com/en-us/windows/forum/windows_10-files/my-name-as-a-folder-name-in-cusers-is-missing-the/d28efd2e-cba5-4e02-a345-ec48451e6db4
@pthanos
@pthanos 3 года назад
I wonder if I could have built better navigation menus with this pattern
@CodingTutorialsAreGo
@CodingTutorialsAreGo 3 года назад
Only one way to find out.
@gueroguerolito3742
@gueroguerolito3742 3 года назад
Thanks a lot for this explanation! As I don't have much experience I definitely need to see it at least one more time in order to bent my mind over it. One question - which in your opinion are must know/understand patterns for junior developer to start with? I know that SOLID principles must, I kind of understand the principles for myself but still don't have the sense for implementing them. As I just accepted my first back-end engineering job I hope I'll understand all these better in process of work and by also watching your tutorials.
@CodingTutorialsAreGo
@CodingTutorialsAreGo 3 года назад
So many patterns! Of the GOF patterns, I'd say Observer, Command, Strategy and Template Method are the fundamentals. Since you should be doing unit testing the Mock Object is very important. Also one of MVC/MVP/MVV-M (often referred to as Model View Whatever, since the distinctions don't much matter). All of it depends on the technology and the type of project you're working on.
@davidwhite2011
@davidwhite2011 3 года назад
Another wonderful tutorial. The only way this could be better is some Orwell books on the right to offset the comrade books on the left. :)
@nick11927
@nick11927 3 года назад
Is it still worth reading the GOF patterns book?
@CodingTutorialsAreGo
@CodingTutorialsAreGo 3 года назад
It's certainly a good a idea to read *a* patterns book, but for all I that I love it, GoF is showing its age. The sample code is in C++ - which is readable if you know C# - but also Smalltalk, which is quite different. Problem is, I've not needed to read recent books on basic patterns in depth, so there's not anything modern I can specifically recommend.
@termuxparadev
@termuxparadev 3 года назад
Muito obrigado pela explicação. No meu caso eu preciso construir um sistema que terá diversas janelas dinâmicas interligadas respondendo a um único objeto. Nesse caso, eu pensei em utilizar o Composite com o Observer e para gerencia a criação um Factory Method. O que você me indicaria nesse caso? Muito Obrigado.
@CodingTutorialsAreGo
@CodingTutorialsAreGo 3 года назад
I can only do a Google translate of your question, but I think I understand it. Your solution sounds about right. You certainly want to use the Observer to make sure multiple windows can respond to changes in a common subject (the composite).
@IBITZEE
@IBITZEE 3 года назад
nice... but... the video should have 10min max... with 2 or 3 methods in the base class you had explain the all thing... and when constantly showing the results in the console... please 'circle' or 'underline' the part you are talking about... you can use a tool like Sysinternals ZoomIt... very effective to draw on screen and try to pause a little more... so we can absorb the information... ;-)
Далее
The Visitor Pattern
19:07
Просмотров 1,6 тыс.
C# 12 Collection Expressions and the Spread Operator
25:27
Composite Pattern - Design Patterns (ep 14)
1:11:23
Просмотров 143 тыс.
10 Design Patterns Explained in 10 Minutes
11:04
Просмотров 2,2 млн
Blazor RenderFragment
23:11
Просмотров 1,4 тыс.
Mastering the Composite Design Pattern in C#
22:00
Просмотров 2 тыс.
Singleton Design Pattern in C# - Do it THAT way
13:15
Blazor Media Queries
15:57
Просмотров 494
Красиво, но телефон жаль
0:32
Просмотров 1,3 млн
ОБСЛУЖИЛИ САМЫЙ ГРЯЗНЫЙ ПК
1:00
Собираем комп за 500 000 рублей!
6:44:35