Тёмный

The Observer Design Pattern in C++ - Part 1 of n - A simple implementation 

Mike Shah
Подписаться 20 тыс.
Просмотров 6 тыс.
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 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
►RU-vid Channel: / mikeshah
►Please like and subscribe to help the channel!
►Join our free community: courses.mshah.io/communities/...

Наука

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

 

8 июл 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 33   
@nikhilbhandary7153
@nikhilbhandary7153 Год назад
Arguably one of the best introductions to Observer pattern. Thanks Mike! Looking forward to your next videos on these topics.
@MikeShah
@MikeShah Год назад
Cheers, thank you for the kind words!
@Andrew_Guerrand_
@Andrew_Guerrand_ Год назад
Hi Mike! Just wanted to thank you for all your videos. They are of high quality and greatly appreciated!
@kulasekhar
@kulasekhar Год назад
Wow! whatever I search for and wish to learn, find your week old video for that same concept! Thank you
@MikeShah
@MikeShah Год назад
Cheers, thank you for the kind words
@shreyabisen4729
@shreyabisen4729 Месяц назад
Thanks for the explanation!
@MikeShah
@MikeShah Месяц назад
Cheers, you are most welcome!
@Southpaw101
@Southpaw101 Год назад
Great explanation. Nice title ... Part 1 of n... cool
@MikeShah
@MikeShah Год назад
Cheers! It's at least 2 parts ;)
@tonym5857
@tonym5857 Год назад
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 💪🙏.
@MikeShah
@MikeShah Год назад
Cheers!
@pedrolobo9835
@pedrolobo9835 Год назад
Very interesting! Thanks for this video!
@MikeShah
@MikeShah Год назад
Cheers!
@user-ql7pw7ld1n
@user-ql7pw7ld1n 2 месяца назад
U have made it very easy to understand, thanks ~Mike();
@MikeShah
@MikeShah 2 месяца назад
Cheers!
@santiagozamora914
@santiagozamora914 Год назад
Can you make a video of Data Oriented Design??
@MikeShah
@MikeShah Год назад
Will eventually! :)
@philtoa334
@philtoa334 Год назад
Thanks.
@MikeShah
@MikeShah Год назад
Cheers!
@thestarinthesky_
@thestarinthesky_ Год назад
Would you please have a video on object pool too? Thank you. Love your channel.
@MikeShah
@MikeShah Год назад
Cheers! That is a great pattern, will add it to the wishlist!
@thestarinthesky_
@thestarinthesky_ Год назад
@@MikeShah thank you Mike 😍
@ghulam2545
@ghulam2545 Год назад
👌👌👌
@MikeShah
@MikeShah Год назад
Cheers!
@grenadier4702
@grenadier4702 Год назад
Does that the same as the pattern "pub/sub" and "event emitter"? Sounds so
@MikeShah
@MikeShah Год назад
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).
@grenadier4702
@grenadier4702 Год назад
@@MikeShah got it, cheers
@ssaadhussain902
@ssaadhussain902 Год назад
Thanks man. When's the next part coming?
@MikeShah
@MikeShah Год назад
Cheers! Next part coming in 2 to 4 days ;)
@ArturasDruteika
@ArturasDruteika Год назад
Very good channel on cpp tuts. Are you planning on making the adapter pattern video as well?
@MikeShah
@MikeShah Год назад
Yes, will eventually add 🙂
@bsdooby
@bsdooby Год назад
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) 😜
@MikeShah
@MikeShah Год назад
Probably will add MVC at some point :) And neat :)
Далее
Самое Романтичное Видео ❤️
00:16
10 Design Patterns Explained in 10 Minutes
11:04
Просмотров 2,2 млн
SINGLETONS in C++
19:16
Просмотров 195 тыс.
8 Design Patterns EVERY Developer Should Know
9:47
Acer Predator Тараканьи Бега!
1:00
Просмотров 239 тыс.
S-Pen в Samsung достоин Золота #Shorts
0:38