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

preview_player
Показать описание

Today, we add another Structural design pattern to our Design Patterns in Java series: The Flyweight Design Pattern.

Timestamps:
00:00 Introduction
00:07 What is the Flyweight Pattern?
02:05 Flyweight Pattern Implementation
04:58 The Flyweight Pattern Class Diagram
06:22 Recap
06:52 Thanks for Watching!

If you found this video helpful, check other Geekific uploads:

#Geekific #DesignPatterns #FlyweightPattern #StructuralPatterns
Рекомендации по теме
Комментарии
Автор

Dude in 7mins you are delivering more value than that delivered in a 3-hour lecture...! Thx

alooooshm
Автор

This video is amazing. What I really appreciate is your ability to articulate WHY we would use this pattern. As a beginning computer programmer, this is helping me properly contextualize the content to make it more "sticky" in my head. Thank you so much for sharing your knowledge with the world!

RyanJones-qohn
Автор

UNISA COS2614 students should be watching these videos. Very useful man

nicholastreurnicht
Автор

Very nice and clear video for me. Thank you very much, sir! I can now understand this pattern in 7mins

ThanhNguyen-qkzb
Автор

This is a very good explanation of flyweight. Thumbs up

harveynorman
Автор

This was very easy to understand, thank you!!!

😁

Sarah-zoys
Автор

Hi, this is the best flyweight explanation i could find on youtube (the other ones were horrible to be honest).

mirageman
Автор

This one was good. Thanks for helping me out !!
Also explaining on slides with code example helps understand betterr (which this one was) rather typing in real time and swithching multiple screen.

freeopensource
Автор

I don't know if its intentional or not, but the style of these videos is similar to the Portal 2 aperture science instructional parts (even the voice resembles the voice acting in Portal Stories: Mel).
Regardless, I LOVE this style! Thank you.

nadavshemesh
Автор

Great content. You deserve more followers

michaelgoppelt
Автор

please do a video about the livingrimoire AGI software design pattern

yotamarker
Автор

Nice and very clear! Just one question... does the flyweight pattern contemplate any particular sort of data structure when storing already created flyweights, something like a recursive tree?

ekathe
Автор

Hey ! Great explanations, thanks !
In the bookfactory, why do you only compare the type and not all the intrinsic values? If I understand correctly, there will be only once the type "action" and once the type "Fantasy" without caring about the different distributors and otherdatas.
Thanks for your answer.

elmatador
Автор

I thought I understood from the video but when I saw your implementation code in github it doesn't match to the class diagram in video. This leads to more confusion. For example there is no 'Store' class in video and in 'Book' and 'BookType' class there are no methods as shown in video, could you please explain? Also, 'BookType' which is in 'BookFactory' class but not imported, not sure how the code even compiled in the first place?

Though appreciate your efforts to explain the concept easily! Thanks.

atharv
Автор

did i just hear cache being pronounced cashue? 3:53

mishaaskar
Автор

Thanks! Although, Java is one of the worst languages, especially for explaining computer science concepts.

sidekickrida