2 cents: in the most compact form of an observer pattern you don't need a subject parameter in Update(). You only need it if you do something based on the subject like the _celsius_ temperature. Or if there are multiple subjects. Nice explanation BTW!
Something seems off, in NewsAgency -> Update method after casting to WeatherStation I have access to Notify method, I should not have so that I don't call it explicitly
observer can update the temp through the object you send to him ,and that will crash the program, due to continue calling the notify each time and then we set ,notify ,,, (stack overflow)
Thank you, this will get me a better grade at my test tomorrow! Feedback: The explanation throughout the video was very good - at the beginning however, the part with the interfaces was lacking details.
So in 15 minutes I got exactly what I needed to fully understand the observable pattern in C#. Subscribed immediately!
Agree, no need to hunt more..
Excellent.. Excellent... Excellent. I love you man. I now got Observer Pattern
2 cents: in the most compact form of an observer pattern you don't need a subject parameter in Update(). You only need it if you do something based on the subject like the _celsius_ temperature. Or if there are multiple subjects.
Nice explanation BTW!
I subscribed right after watching the video. Was really helpful.
Beautiful explanation... Thank You.
String interpolation would be nicer, good video though. I would probably use pub sub through redis
Awesome tutorial! Clear and concise. Thanks much!
It is very clear explanation. Thanks.
You are welcome!
Thanks for the quick and clear explanation!
Isn't it better to inject ISubject via constructor in observer?
Very nice explanation... Kudos
Something seems off, in NewsAgency -> Update method after casting to WeatherStation I have access to Notify method, I should not have so that I don't call it explicitly
What's the difference between creating all of this observer pattern code vs just using events and subscribing to those events?
It's just to show you how it all works but ofcourse you can do your custom implementation as well.
Nice explanation. Thanks for your quick demo..
You are welcome!
observer can update the temp through the object you send to him ,and that will crash the program, due to continue calling the notify each time and then we set ,notify ,,, (stack overflow)
Very nice explanation. thank you
Should we really pass the subject with a public Notify() and expose that method to every observer?
Can u post a good tutorial for osberver in C# ?
Perfectly simple and very clear explanation.
Thx.
(I subscribe to your channel )
Excellent video
Alguien me puede decir donde encontrar el codigo?
Thank youu!!! I understand it perfectly :)
Simple and easy 👍👌
easy nd crisp
Nicley explain
good Job :-)
Thank you, this will get me a better grade at my test tomorrow!
Feedback: The explanation throughout the video was very good - at the beginning however, the part with the interfaces was lacking details.
Thanks for the review! All the best for your test.
very presice and clear, this is the exact explanation i was looking for!
weather estation
its not ikual tu null.
The code is not your repo
Maybe talk more clearly and slowly