Тёмный

Flyweight Structural Design Pattern in C++ - Part 2 of 2 - Implementation (with factory) 

Mike Shah
Подписаться 20 тыс.
Просмотров 644
50% 1

►Software Design and Design Patterns Playlist: • C++ Software Design an...
►Find full courses on: courses.mshah.io/
►Join as Member to Support the channel: / @mikeshah
►Lesson Description: In this lesson we do a quick review of the structural design pattern the flyweight pattern, and then we dive into an implementation. I will show you how to create a basic flyweight object, and then we will also create a factory, and ultimately use a shared_ptr in a map to share our objects. There are several ways to structure a flyweight, and we'll hope to understand the trade-offs at the end of the video when we finish. As always, please share your thoughts and any interesting use cases you have found for the flyweight!
►RU-vid Channel: / mikeshah
►Please like and subscribe to help the channel!
►Join our free community: courses.mshah.io/communities/...

Наука

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

 

21 июл 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 8   
@bsdooby
@bsdooby 3 месяца назад
...and the "foray" into ECS (in the context of OpenGL) was @wesome! Much appreciated.
@MikeShah
@MikeShah 3 месяца назад
Cheers!
@Chupe_chupe
@Chupe_chupe 3 месяца назад
Great video
@MikeShah
@MikeShah 3 месяца назад
Cheers!
@GaryChike
@GaryChike 3 месяца назад
First!!!
@MikeShah
@MikeShah 3 месяца назад
😁
@bsdooby
@bsdooby 3 месяца назад
Why not an Elm 🌲? And technically, return 0 in main is not mandated by the C++ standard (might save you some key strokes) 😅
@MikeShah
@MikeShah 3 месяца назад
Considering I just reviewed the 'Elm' language, that should have been loaded in my cache 😅. True -- could definitely save a line or two :)
Далее
Why Use Design Patterns When Python Has Functions?
23:23
The Trump rally shooting from a photographer's POV
00:58
Cpp2 - First Impression [Programming Languages Episode 27]
1:08:19
Generics: The most intimidating TypeScript feature
18:19
Deep Dive Into the Repository Design Pattern in Python
11:56
Choose a phone for your mom
0:20
Просмотров 7 млн
Самый быстрый пылесос!
0:30
Просмотров 22 тыс.
Здесь упор в процессор
18:02
Просмотров 373 тыс.
iPhone 16 - НЕ СТОИТ ПРОПУСКАТЬ
4:50
Самый быстрый пылесос!
0:30
Просмотров 22 тыс.