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

Поділитися
Вставка
  • Опубліковано 8 чер 2024
  • ►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!
    ►UA-cam Channel: / mikeshah
    ►Please like and subscribe to help the channel!
    ►Join our free community: courses.mshah.io/communities/...
  • Наука та технологія

КОМЕНТАРІ • 8

  • @bsdooby
    @bsdooby 2 місяці тому +1

    ...and the "foray" into ECS (in the context of OpenGL) was @wesome! Much appreciated.

  • @Chupe_chupe
    @Chupe_chupe 2 місяці тому +1

    Great video

  • @GaryChike
    @GaryChike 2 місяці тому +3

    First!!!

  • @bsdooby
    @bsdooby 2 місяці тому +1

    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  2 місяці тому +1

      Considering I just reviewed the 'Elm' language, that should have been loaded in my cache 😅.
      True -- could definitely save a line or two :)