Тёмный
No video :(

The Observer Design Pattern in C++ - Part 4 of n - Notify Specific System 

Mike Shah
Подписаться 22 тыс.
Просмотров 2,4 тыс.
50% 1

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

 

5 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 20   
@OptimoosPlays
@OptimoosPlays Год назад
Mike, this whole series has been incredibly relevant to me for a project I'm currently working on, and your explanation has dramatically enhanced my understanding. I find your explanations to be some of the best on RU-vid and I don't understand how you're not getting more views. I'll certainly continue to watch!
@MikeShah
@MikeShah Год назад
Cheers, thank you for the kind words! I'll keep making the content, and hopefully the views will come :)
@gautam3978
@gautam3978 9 дней назад
Can you tell where I can see those ppts that you have created?
@MikeShah
@MikeShah 9 дней назад
Some are available on my webpage
@gautam3978
@gautam3978 8 дней назад
@@MikeShah Tried finding, but could find them, is possible can you mention the link here please
@MikeShah
@MikeShah 8 дней назад
@@gautam3978 Not all are posted -- see my website and click on talks (i.e. www.mshah.io/#Talks)
@nabilandadamslaboratory3422
@nabilandadamslaboratory3422 9 месяцев назад
Great series! Learned a lot! Can you please share the code? Thanks!!
@jalennaarden2553
@jalennaarden2553 9 месяцев назад
29:09 Why are you iterating through the list if you can just call list.remove(observer) immediately? Since you're passing through the observer and not li.
@MikeShah
@MikeShah 9 месяцев назад
Hmm, I believe I wanted to make sure to remove the exact observer. I think remove takes in an iterator or a value, but I want to remove a specific observer. I suppose it should still work with remove, even on a forward_list -- try it out!
@jalennaarden2553
@jalennaarden2553 9 месяцев назад
@@MikeShah Hi, great series btw and thank you for responding. But back to my question, I meant that in the if statement you're checking if li == observer and then you're removing "observer", but my confusion stems from the fact that: why go through the additional steps of iterating and condition check when you could call it from the get go? Since you're not passing li to be removed, I'm wondering if these steps are redundant or if they serve an actual purpose. Thanks again.
@MikeShah
@MikeShah 9 месяцев назад
I think you're right -- that is less efficient. I think I should call list.remove(li) directrly since we have an iterator to the position (that should be constant time). Otherwise, as suggested, could just call list.remove(some_value) and that should remove the value after iterating it if it exists.@@jalennaarden2553
@jalennaarden2553
@jalennaarden2553 9 месяцев назад
@@MikeShah Thanks, I appreciate you taking time for clarifying!
@MikeShah
@MikeShah 9 месяцев назад
Cheers!@@jalennaarden2553
@redvermont1558
@redvermont1558 Год назад
Great. Planning to continue OpenGL series?
@MikeShah
@MikeShah Год назад
Yup absolutely! Will have another video on computing projection matrix by hand soon!
@redvermont1558
@redvermont1558 Год назад
@@MikeShah Thanks. Looking forward to it.
@rogerfederer6456
@rogerfederer6456 Год назад
1st comment. wow great series mike
@MikeShah
@MikeShah Год назад
Cheers, thank you for the kind words Roger!
Далее
AWESOME Intel Laptops... Finally!
7:12
Просмотров 370 тыс.
THE MAGNUS CARLSEN INTERVIEW
24:09
Просмотров 148 тыс.
This Kid Just CRUSHED Me
47:30
Просмотров 20 тыс.
Magnus Carlsen Just Saved Chess
11:44
Просмотров 41 тыс.