The observer pattern (with Java example)

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ม.ค. 2025

ความคิดเห็น • 43

  • @Ram-ld4zs
    @Ram-ld4zs 6 ปีที่แล้ว +8

    No one has explained this pattern as clearly as you did. Thanks a lot. great tutorial video.

  • @kevinbarry1701
    @kevinbarry1701 6 ปีที่แล้ว +17

    Brilliant video, If ya decide to keep going with tutorials then please theseVideos.Attach(Me)

    • @OuanisSeddaoui
      @OuanisSeddaoui  5 ปีที่แล้ว +3

      Hey Kevin. These videos were recorded when I was a student. I've been thinking that I should record general coding tutorials though. Will keep you posted

    • @GamerForeverChannel
      @GamerForeverChannel 5 ปีที่แล้ว +1

      @@OuanisSeddaoui bro update more... all patterns

  • @HeikoTer
    @HeikoTer 6 ปีที่แล้ว +3

    Hey guys,
    I wrote down the code and uploaded it.
    gist.github.com/heikoter/ece55087748b16a9ce522115b6153bac
    Actually untested. No java on my mac. Let me know if something is wrong.
    enjoy.

  • @derboss66
    @derboss66 2 ปีที่แล้ว

    your explanation was very clear THX MEN :D

  • @samangoudarzi5691
    @samangoudarzi5691 4 ปีที่แล้ว

    This is a really clear explanation of this pattern
    Thanks

  • @demonspawn5967
    @demonspawn5967 5 ปีที่แล้ว

    Thanks for the tutorial! You made it really easy to understand this pattern :)!

  • @talhamasood6165
    @talhamasood6165 5 ปีที่แล้ว

    Brilliantly explained and it will really help if you’ll keep making videos in this pattern where you show real life example then practically do it .... thanks

  • @dejancetkovic4315
    @dejancetkovic4315 7 ปีที่แล้ว +5

    you should have continued with tutorials

  • @md.emranhossain8156
    @md.emranhossain8156 5 ปีที่แล้ว +2

    Please make tutorial on other design patterns. (like: Singleton Patterns, Proxy Patterns, Decorator Patterns, Adapter Patterns, Abstract Factory, Interpreter Patterns Patterns, Factory Method Patterns) more or less please cover "Gang of Four" Design Patterns by Java.

  • @ryderman5329
    @ryderman5329 3 ปีที่แล้ว

    Really good explanation thanks

  • @toma8873
    @toma8873 4 ปีที่แล้ว

    well done

  • @_PrajaktaMokale
    @_PrajaktaMokale 2 ปีที่แล้ว +1

    Thank u sir ❤️🥰 can u make more video about types of pattern in java plzzz

  • @Vincent89297
    @Vincent89297 5 ปีที่แล้ว

    Very well made

  • @tomanonym1168
    @tomanonym1168 6 ปีที่แล้ว

    Thank you. Clear and concise.

  • @arthurservulo8050
    @arthurservulo8050 5 ปีที่แล้ว

    Very clear explanation! thanks

  • @sylwesteroleszek3143
    @sylwesteroleszek3143 4 ปีที่แล้ว

    Thank's a lot. Nice example.

  • @noot_2
    @noot_2 4 ปีที่แล้ว

    Dude fucking pogchamp, understanded everything. Thanks man

  • @JamesReubenGruta
    @JamesReubenGruta 5 ปีที่แล้ว

    Awesome accent and explanation for an indian youtuber!

  • @kozert
    @kozert 5 ปีที่แล้ว +3

    Good tutorial!
    Just one little point, if you check if two Strings are equal then use .equals instead of .compareTo, because it is better performance wise and also easier to read for others

  • @aleksandarstanoevski3096
    @aleksandarstanoevski3096 6 ปีที่แล้ว

    Great explanation !

  • @klhy9967
    @klhy9967 6 ปีที่แล้ว

    Totally understood! Thanks, man!

  • @farruhhabibullaev5316
    @farruhhabibullaev5316 6 ปีที่แล้ว

    It is cool explanation. Thank you, dude!

  • @safwankarim1610
    @safwankarim1610 7 ปีที่แล้ว

    very clearly explained!

  • @MrSarky1992
    @MrSarky1992 6 ปีที่แล้ว

    Hey,
    Thank you very much for the video. One quick question: the reason you are using type object is the update method is because you might going to have a Shop subject later on or other subjects right? So I'm guessing one solution to this problem is to have a method like yours and use if statements inside, or to have the update method overloaded right?

  • @georgianally
    @georgianally 6 ปีที่แล้ว +1

    Do you have the code files for this? If you could upload them on github that'd be great.

    • @OuanisSeddaoui
      @OuanisSeddaoui  6 ปีที่แล้ว

      Sorry I made this and forgot I even made it! Don't think I kept any code or UML for this unfortunately :(

    • @unlink1649
      @unlink1649 6 ปีที่แล้ว

      ​@@OuanisSeddaoui can you make sure you never do this again? like, I know you do this out of the goodness of your heart, but I'm common curtesy to upload the code. Just dump it in a gist or something. Nothing fancy. It's very annoying to keep skipping back and forth because you didn't catch something or have to literally type it up while you explain it. It's the worst kind of tutorial. You're excused for being great at teaching the subject, but please, never do this again.

    • @unlink1649
      @unlink1649 6 ปีที่แล้ว

      @@OuanisSeddaoui Can you just go ahead and retype it out? I mean, I would, but it's kind of a bad track record. I just stumbled upon your resource a second time and found my own comment while looking for the code.

    • @kose241
      @kose241 5 ปีที่แล้ว +3

      @@unlink1649 lmao "you're excused..."

  • @lucutovidiu5281
    @lucutovidiu5281 5 ปีที่แล้ว +1

    All good man but post office shouldn't send all the letters to the customer for it to check if anyone is his, Confidentiality....

  • @trongcayhieuqua1375
    @trongcayhieuqua1375 5 ปีที่แล้ว

    nice

  • @ankitg2361
    @ankitg2361 5 ปีที่แล้ว

    Thanks, man! I tried the same but when I am passing 'Chris' in the mail object, then it is not working.

    • @ankitg2361
      @ankitg2361 5 ปีที่แล้ว

      github.com/guptaprankit96/DesignPatternDemo

  • @roottwo5459
    @roottwo5459 5 ปีที่แล้ว

    good shit

  • @dejancetkovic4315
    @dejancetkovic4315 7 ปีที่แล้ว

    very nice

  • @mrspeckter
    @mrspeckter 6 ปีที่แล้ว

    Hey do you have that UML of subject and observer

    • @OuanisSeddaoui
      @OuanisSeddaoui  6 ปีที่แล้ว

      Sorry I made this and forgot I even made it! Don't think I kept any code or UML for this unfortunately :(

  • @mortezanamvar3866
    @mortezanamvar3866 5 ปีที่แล้ว

    hi. can you please share the source code of this video?

    • @OuanisSeddaoui
      @OuanisSeddaoui  5 ปีที่แล้ว

      I'm sorry Morteza I don't have anymore.

  • @saujanmaka693
    @saujanmaka693 6 ปีที่แล้ว

    Thank you bosss...haha

  • @RedFisher475869
    @RedFisher475869 6 ปีที่แล้ว

    Thank youuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu