►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 are going to refactor our code yet again, this time to more safely register (add/subscribe) and unregister (unsubscribe/remove) observers to their subjects. Note that this lesson builds off of the previous two in this series.
00:00 Introduction
00:45 Recap of the previous lesson.
02:40 Demonstrating the problem with our observers
05:00 Utilizing RAII with our Concrete Observer (Watcher) class to register/unregister
08:14 Creating a test case in our main
09:48 Separating our project into separate files so we have concrete types
13:33 Demonstration of our new Watcher class preventing lifetime errors.
15:10 Review of the key insight from this lesson.
16:24 Conclusion
►RU-vid Channel: / mikeshah
►Please like and subscribe to help the channel!
►Join our free community: courses.mshah.io/communities/...
20 июл 2024