The Observer Design Pattern in C++ - Part 1 of n - A simple implementation
Вставка
- Опубліковано 21 лип 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 I present to you the basics of the Observer Design pattern in C++ with the theory and a first implementation. We will implement the most naive version of the observer pattern so that you understand from scratch exactly how to create this pattern. I'm going to do this in an object oriented manner, but it need not be limited to just object oriented programming.
00:00 Introduction
01:00 Theory of where to use Observer Pattern
10:20 Implementation of Observer Concrete Class
12:30 Implementation of Subject Concrete Class
16:30 Creating a simple test
20:30 Review of our simple implementation
21:53 Conclusion
►UA-cam Channel: / mikeshah
►Please like and subscribe to help the channel!
►Join our free community: courses.mshah.io/communities/... - Наука та технологія
Arguably one of the best introductions to Observer pattern. Thanks Mike! Looking forward to your next videos on these topics.
Cheers, thank you for the kind words!
Hello Prof. Shah, thank you again for sharing these invaluable insights and help the very new beginners to learn CPP!
Cheers, you are most welcome!
Wow! whatever I search for and wish to learn, find your week old video for that same concept! Thank you
Cheers, thank you for the kind words
Hi Mike! Just wanted to thank you for all your videos. They are of high quality and greatly appreciated!
Observer is a usefull pattern for example web dev in Angular used it, every time action happen in object doom is updated. Patterns is the next level I recommend the Book Design Pattern. Thank you for this great video, I will follow it to learn more 💪🙏.
Cheers!
Great explanation. Nice title ... Part 1 of n... cool
Cheers! It's at least 2 parts ;)
Very interesting! Thanks for this video!
Cheers!
Thanks for the explanation!
Cheers, you are most welcome!
Would you please have a video on object pool too? Thank you. Love your channel.
Cheers! That is a great pattern, will add it to the wishlist!
@@MikeShah thank you Mike 😍
Can you make a video of Data Oriented Design??
Will eventually! :)
U have made it very easy to understand, thanks ~Mike();
Cheers!
did you just deconstruct Mike? 🙈🙉🙊
@@Dazza_Doo 🤣
Thanks.
Cheers!
Does that the same as the pattern "pub/sub" and "event emitter"? Sounds so
pub and sub is the same idea here. I haven't used EventEmittter in javascript, but conceptually it seems similar (Not sure on technical details of what eventemitter otherwise provides in addition to this pattern).
@@MikeShah got it, cheers
👌👌👌
Cheers!
Thanks man. When's the next part coming?
Cheers! Next part coming in 2 to 4 days ;)
Very good channel on cpp tuts. Are you planning on making the adapter pattern video as well?
Yes, will eventually add 🙂
Do you also intend to present "higher order" (compound) design patterns (like MVC)?
And you can spare yourself a few key strokes by not writing `return 0;` in `main` ( it is not mandated by the C++ standard) 😜
Probably will add MVC at some point :) And neat :)