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...
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.
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.
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)
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
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.
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.
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.
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.
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).
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... ;-)