Flyweight Structural Design Pattern in C++ - Part 1 of 2 - Understanding the Pattern

Поділитися
Вставка
  • Опубліковано 31 тра 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 understand the flyweight pattern, which is a structural design pattern. The flyweight can be used to improve your performance significantly by sharing 'common' (often immutable) components of data. In the next lesson, we'll look at implementing the flyweight pattern.
    ►UA-cam Channel: / mikeshah
    ►Please like and subscribe to help the channel!
    ►Join our free community: courses.mshah.io/communities/...
  • Наука та технологія

КОМЕНТАРІ • 15

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

    Love this series too ❤ maybe even as much as collecting Uruks..

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

    I ❤ that origin story of the pattern (its name)...and the technicalities, OFC

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

    hey thank you very much for this video its really helpful, and can you please make videos about sequence patterns or behavioral patterns.

    • @MikeShah
      @MikeShah  2 місяці тому

      More coming to this playlist!

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

    Great video. As you described, I found it useful as what I called too managers like Textures, Meshes or Sounds so you keep only one copy and reuse it as many times you need those. As a simple example, you could be storing a texture for a 3d model of a picture on the wall and at the same time that texture could used as background for the scene. Store once, use many.

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

    Design patterns is cool theme. There is not too much about that on youtube.

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

    Great video

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

    I probably have this wrong but I see this as similarity to ECS pattern styles. Would you say there’s a difference between the two patterns?

    • @MikeShah
      @MikeShah  2 місяці тому

      Could be very similar, in the sense that ECS could 'share components' (e.g. mesh) :) Guess what the next pattern will be ;)

  • @__hannibaalbarca__
    @__hannibaalbarca__ 2 місяці тому

    I have problems to make dest