Тёмный
No video :(

The Composite Pattern Explained and Implemented in Java | Structural Design Patterns | Geekific 

Geekific
Подписаться 33 тыс.
Просмотров 50 тыс.
50% 1

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

 

5 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 32   
@fastexpand
@fastexpand Год назад
Now I can skip 3 hours of class going over this and completely understand it in 5 minutes! Good freaking job!
@BoonkiCoC14
@BoonkiCoC14 2 года назад
Man these videos are great. They are perfect. I've been looking everywhere for explanations for some of these design patterns and not a single person could explain them the way you did. Cheers!
@geekific
@geekific 2 года назад
Wow! Glad you like them :) Thanks a lot
@kineticBoss
@kineticBoss Год назад
Your videos definitely provide a starting point in understanding clearly what a certain design pattern is. This is great.
@sarabloss1
@sarabloss1 2 года назад
Currently covering this topic in my Data Structures class, and this was such a helpful explanation of a confusing chapter. Seeing everything visualized really helped me grasp the concept. Much appreciated!
@geekific
@geekific 2 года назад
You're very welcome! Glad it was helpful :)
@DemystifyFrontend
@DemystifyFrontend 2 дня назад
Well explained
@harveynorman8787
@harveynorman8787 11 месяцев назад
Fantastic example and explanation
@manalahmadi992
@manalahmadi992 2 года назад
I have to say that your videos are so helpful. Thank you very much
@geekific
@geekific 2 года назад
Glad you like them!
@derekdevs
@derekdevs Год назад
Thank you for this series. It's been very helpful!
@AymenTDD
@AymenTDD 2 года назад
Thank you so much, u're saving me in the night of an exam ❤️❤️❤️
@geekific
@geekific 2 года назад
That's exactly why am here
@mintdu
@mintdu Год назад
it is really helped me alot! thank you very very much !
@ception3513
@ception3513 Год назад
Thanks, great job!
@seuz7520
@seuz7520 10 месяцев назад
Yo that's actually insane. I am having a test next week in creational/ structural/ behaviour design patterns. How am I even supposed to remember all this. I am watching this video which are really nice and they explain really well but idk all of them at the same time to be examined. :/
@geekific
@geekific 10 месяцев назад
Good luck with your test! Let us know if we can help you further :)
@seuz7520
@seuz7520 10 месяцев назад
@@geekific thanks for the support !!
@aldolunabueno2634
@aldolunabueno2634 4 месяца назад
4:25 The UML diagram is missing the has-a relationship from Composite class to Component internface.
@miichy4
@miichy4 Месяц назад
that's right
@andresdiaz2737
@andresdiaz2737 Год назад
Very helpful indeed. IAre composite pattern and composition (meaning composition instead of regular inheritance in java ) the same concept?
@geekific
@geekific Год назад
I believe watching these two videos will help clarify the concept: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Vfk6sExu8-4.html & ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-sN2_CoB_kbw.html Cheers!
@engsalahmahmoud2418
@engsalahmahmoud2418 2 года назад
Thanks,
@xintongma2976
@xintongma2976 Год назад
thanks
@shopdemo6384
@shopdemo6384 2 года назад
what a good video
@geekific
@geekific 2 года назад
Thank you!
@AfriandiHaryanto
@AfriandiHaryanto Год назад
What is the difference between Composite and Decorator?
@geekific
@geekific Год назад
Please check the Decorator video here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-v6tpISNjHf8.html
@dadlord689
@dadlord689 2 года назад
When you have a Book that is a Box (extending the Product : Box class) - you are confused.
@geekific
@geekific 2 года назад
It implements it and not extends it! Feel free to check our OOP basics video here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Vfk6sExu8-4.html for more info :) You could name the interface anything you want, but in this series our main focus is explaining the patterns and why and when to use each of them! Cheers!
@N00BRIUM
@N00BRIUM Год назад
Great video! "class Product implements Box" sounds a bit off. I think renaming the "Box" interface to "PriceGettable" and "CompositeBox" to just "Box" makes more sense. // Nodes public interface PriceGettable { double calculatePrice(); } // Non-leaf nodes public class Box implements PriceCalculatable { private final List boxesOrProducts; @Override public double calculatePrice() { return boxesOrProducts.stream() .mapToDouble(PriceCalculatable::calculatePrice) .sum(); } } // Leaf nodes abstract class Product implements PriceCalculatable { final String title; final String price; } public class Book extends Product { @Override public double calculatePrice() { return getPrice(); } } public class Book extends Product { @Override public double calculatePrice() { return getPrice(); } }
@geekific
@geekific Год назад
Thanks for the effort and feedback :)
Далее
Composite Design Pattern Practical
17:04
Просмотров 110 тыс.
ДО ВСТРЕЧИ НА РАЗГОНЕ
52:11
Просмотров 453 тыс.
10 Design Patterns Explained in 10 Minutes
11:04
Просмотров 2,3 млн
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
8 Design Patterns EVERY Developer Should Know
9:47
Composite Design Pattern Theory
4:18
Просмотров 129 тыс.