C# Observer Pattern Example

Поделиться
HTML-код
  • Опубликовано: 29 ноя 2024

Комментарии • 37

  • @manudelmarche
    @manudelmarche 4 года назад +17

    So in 15 minutes I got exactly what I needed to fully understand the observable pattern in C#. Subscribed immediately!

  • @achilleskocaeli
    @achilleskocaeli 4 года назад

    Excellent.. Excellent... Excellent. I love you man. I now got Observer Pattern

  • @mireazma
    @mireazma 4 года назад +1

    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!

  • @letticiadlamini1009
    @letticiadlamini1009 3 года назад +1

    I subscribed right after watching the video. Was really helpful.

  • @ricomarcelo5521
    @ricomarcelo5521 3 года назад +1

    Awesome tutorial! Clear and concise. Thanks much!

  • @GesikaMarie
    @GesikaMarie 4 года назад +1

    Thanks for the quick and clear explanation!

  • @MrMattberry1
    @MrMattberry1 2 месяца назад

    String interpolation would be nicer, good video though. I would probably use pub sub through redis

  • @DeependraJoshi-y5u
    @DeependraJoshi-y5u Год назад

    Beautiful explanation... Thank You.

  • @bmochoi4482
    @bmochoi4482 4 года назад +2

    It is very clear explanation. Thanks.

  • @mdeqbalansari
    @mdeqbalansari 4 года назад +1

    Very nice explanation... Kudos

  • @sivaperuman1219
    @sivaperuman1219 4 года назад +1

    Nice explanation. Thanks for your quick demo..

  • @rosian23
    @rosian23 3 года назад

    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

  • @alicakil6935
    @alicakil6935 2 года назад

    Very nice explanation. thank you

  • @abdelrhmanahmed1378
    @abdelrhmanahmed1378 3 года назад +1

    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)

  • @vchirilov
    @vchirilov 2 года назад +1

    Isn't it better to inject ISubject via constructor in observer?

  • @ragtop63
    @ragtop63 10 месяцев назад

    What's the difference between creating all of this observer pattern code vs just using events and subscribing to those events?

    • @CodeRadiance
      @CodeRadiance  10 месяцев назад

      It's just to show you how it all works but ofcourse you can do your custom implementation as well.

  • @miguelangelromar
    @miguelangelromar 3 года назад

    Perfectly simple and very clear explanation.
    Thx.
    (I subscribe to your channel )

  • @gorangratte2471
    @gorangratte2471 3 года назад

    Should we really pass the subject with a public Notify() and expose that method to every observer?

  • @SublimeCS
    @SublimeCS 3 года назад

    Excellent video

  • @AsierWillyams
    @AsierWillyams 4 года назад

    Thank youu!!! I understand it perfectly :)

  • @sufisayyad4432
    @sufisayyad4432 3 года назад

    Simple and easy 👍👌

  • @lizethgarayreyes4784
    @lizethgarayreyes4784 3 года назад

    Alguien me puede decir donde encontrar el codigo?

  • @idopin
    @idopin 4 года назад

    very presice and clear, this is the exact explanation i was looking for!

  • @i.a.9776
    @i.a.9776 2 года назад

    Can u post a good tutorial for osberver in C# ?

  • @09harikesh
    @09harikesh 5 лет назад +1

    easy nd crisp

  • @Incrazyboyy
    @Incrazyboyy 4 года назад

    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.

    • @CodeRadiance
      @CodeRadiance  4 года назад

      Thanks for the review! All the best for your test.

  • @AjaySingh-fq4fz
    @AjaySingh-fq4fz 5 лет назад +1

    Nicley explain

  • @uwehomm8686
    @uwehomm8686 4 года назад

    good Job :-)

  • @Skartcher
    @Skartcher 2 года назад

    weather estation

  • @irrefl1672
    @irrefl1672 5 лет назад

    its not ikual tu null.

  • @hadhebola
    @hadhebola 11 месяцев назад

    The code is not your repo

  • @Infinity-Minus-One
    @Infinity-Minus-One Месяц назад

    Maybe talk more clearly and slowly