No video

Observer Design Pattern in Java

The observer pattern is a software design pattern in which an object, called the subject, maintains a list of its dependents, called observers, and notifies them automatically of any state changes, usually by calling one of their methods.
Design Pattern in Java : • Design Patterns in Jav...

Пікірлер: 177

  • @prasadbonam4430
    @prasadbonam44305 жыл бұрын

    I can say one thing " ur examples are so Realistic easy 2 understand" keep it up Good work bro n Thank you :)

  • @siddharthmohanty7106
    @siddharthmohanty71063 жыл бұрын

    I discovered this channel a few months ago and I'm legit loving it!

  • @berjaoui92
    @berjaoui92 Жыл бұрын

    I started following your tutorials in 2017. Now i am a full stack java developer...Thank you a lot

  • @muhammadsaleh816
    @muhammadsaleh8164 жыл бұрын

    You are making life easier for java developers Love from Pakistan :)

  • @vikramkumar-mi1yk
    @vikramkumar-mi1yk2 жыл бұрын

    All the playlists were really very good and informative. Thanks, Navin for such wonderful content.

  • @vishalsingh-dj6od
    @vishalsingh-dj6od4 жыл бұрын

    I have watched multiple observer design pattern video, I must say this is the best one and more realistic. Keep it going boss..

  • @khsbangash
    @khsbangash4 жыл бұрын

    Hi Navin, Your videos and way of teaching are quite energetic. Even boring subjects you can explain with full of energy. Keep up the good work bro. Love and prayers from Pakistan !

  • @BakhtyarQadri
    @BakhtyarQadri5 жыл бұрын

    Your thinking way is very appreciatable.Thanks to show me this way of logic building.

  • @karthik-ex4dm
    @karthik-ex4dm4 жыл бұрын

    Actually... This is the best video explaining observer pattern I've seen... From yesterday, I've been searching for observer pattern in both python and javascript, didn't find any video that solidified my understanding. I might have watched 5-10 videos (best ones).... I was sceptical at first since this video is in java (I don't know java) but turns out java is not as difficult as its often publicized. I actually understood everything clearly since I know python and JS Naveen's example of KZread was on point!!! If he had not taken youtube example, I think it would have been just another observer pattern video Java is also good!!! I'm liking the way it's written Now I'm gonna create this in JS

  • @dr.venugopalrajupalem6526
    @dr.venugopalrajupalem65264 жыл бұрын

    Wonderful explanation and the example of the Observer Pattern I have ever seen! You are my favourite Teacher. Thanks.

  • @anu608497
    @anu6084974 жыл бұрын

    Thanks Telusko. Your examples are very intuitive and helpful. I am able to learn Observable Design Pattern easily now

  • @vladanulardzic5859
    @vladanulardzic58595 жыл бұрын

    Par excellence ! Perfect explained. Perfect example. Especially direct programming in the java. Keep on !

  • @yazilk30
    @yazilk305 жыл бұрын

    Its really amazing that....this lengthy process is very easy to understand by you Sir😍😍😍😍

  • @jilanishaik8791
    @jilanishaik87914 жыл бұрын

    Easily able to understanding by giving simple examples with clear explainations. Thanks Naveen.

  • @uma4525
    @uma45254 жыл бұрын

    Quick and nice explanations that's very easy to understand - telusko learnings. From this channel ,I have learnt a lot. Thanks much Navin

  • @satyabatigoswami1735
    @satyabatigoswami17355 жыл бұрын

    Thank you sir. I was looking for visitor pattern video and found this new concept. Thanks a lot

  • @pybrowrynn
    @pybrowrynn5 жыл бұрын

    Hello Navin, I have been watching your videos for a while now and I find them very useful. I really wish you could do a live stream some time so that we could interact with you.

  • @ShadowWalker683
    @ShadowWalker6833 жыл бұрын

    Sir, felt great, to be honest. I was struggling with this observer pattern and now it's all a matter of examples - you've made it that easy. And one more thing, with this online studying times, this study feels much more realistic with your appearance. Otherwise, only a study video makes it boring sometimes. Thanks a lot sir.

  • @alexissanchezbro
    @alexissanchezbro4 жыл бұрын

    Great video code along, this really helped me put the theory into practice. Thank you

  • @ranjithv133
    @ranjithv1335 жыл бұрын

    Hi Navin, I really have to say this. thank you. you surely are changing my life for good. keep up the good work.

  • @kalidindiprashanth7363
    @kalidindiprashanth73635 жыл бұрын

    Hi naveen, can you also make videos on Java memory management and how to improve performance of java applications.

  • @user-cq7db9ij1o
    @user-cq7db9ij1o4 жыл бұрын

    This is called teaching! Excellent

  • @gigimushi6705
    @gigimushi67052 жыл бұрын

    finaly, with your exemple i understand how to implement the observer pattern. you are the best.

  • @MsGayathri19
    @MsGayathri195 жыл бұрын

    Wow simply explained observer design pattern easily .. thank so

  • @sohankundu448
    @sohankundu448 Жыл бұрын

    Please continue the series. It would be very much helpful.

  • @mananjain9177
    @mananjain91773 жыл бұрын

    Amazing series....can we have more design patterns explained through some more videos under this playlist?

  • @cristianflorentintarta885
    @cristianflorentintarta885 Жыл бұрын

    I am impressed. Kudos. Explanation, engagement and I do not believe that you are getting enough props for ur work. If you have been my high school or college teacher ... :( , but thank you and will keep supporting sir :) :D :}

  • @guitaristsehokim
    @guitaristsehokim4 жыл бұрын

    It was awesome to follow all of design pattern videos. Could you cover all the other design patterns as you said we have to know all?

  • @sreekavya5743
    @sreekavya57434 жыл бұрын

    I got very good understanding with ur explanation sir.Thank you!!

  • @subashkannan949
    @subashkannan949 Жыл бұрын

    well explained🔥Also try to upload the other design patterns as well it will be very useful for us...!!

  • @aswarthanarayanareddyb176
    @aswarthanarayanareddyb1765 жыл бұрын

    Every time...learn new from telusko, and waiting for micro services series

  • @qingsiji1638

    @qingsiji1638

    3 жыл бұрын

    can not agree more,there is nealry no very good lesson for micro services. Waiting for it too. I have watched so many lessons of telusko

  • @MultiGaurav25

    @MultiGaurav25

    3 жыл бұрын

    @@qingsiji1638 check java brains(Kaushik) for microservices

  • @amyd7041
    @amyd70415 жыл бұрын

    Great content! Thank you so much 👍🏻

  • @rayasamkiran
    @rayasamkiran3 жыл бұрын

    Thanks for explaining it in lucid way. Few things I noticed.. Subscriber class .. Channel channel = new Channel (); This is not required... You can remove the RHS part as you are doing in setter method.. Another improvement in KZread class is ... Unsubscribe is called only from subscriber side but not from channel side...

  • @catlord69
    @catlord694 жыл бұрын

    Amazing explanation !

  • @dohruba
    @dohruba3 жыл бұрын

    Your example was awesome! Thanks, bro :D

  • @vishnuvardhanreddy8584
    @vishnuvardhanreddy85845 жыл бұрын

    Yeah I always waiting for your video content .... Everytime

  • @khadijaaitbouiramouin7776
    @khadijaaitbouiramouin77763 жыл бұрын

    Just amazing, a smart way to explain things, Thank u soo much

  • @libinthomas5349
    @libinthomas53492 жыл бұрын

    Thanks a lot 🙏 Expecting more videos like this.

  • @sanjaypattnaik3288
    @sanjaypattnaik32884 жыл бұрын

    Great Explanation. Good Example.

  • @raws4209
    @raws42093 жыл бұрын

    thank you for this awesome explanation!!!!

  • @alinehme1412
    @alinehme14122 жыл бұрын

    Crystal clear, thanks a lot!

  • @ThaiCaliforniacom
    @ThaiCaliforniacom5 жыл бұрын

    Awesome I can use this concept with JavaScript too. Thanks a lot

  • @priyagupta-ko2mk
    @priyagupta-ko2mk3 жыл бұрын

    Thanks Naveen . You have explained it very well.

  • @nandininema7123
    @nandininema71234 жыл бұрын

    Thank you Naveen for your awesome videos.

  • @shashidharkrovvidi4998
    @shashidharkrovvidi49985 ай бұрын

    such an easy to understand example! thank you :)

  • @nagank90
    @nagank905 жыл бұрын

    Great explanation thank you so much.

  • @crazeeealgorithms3236
    @crazeeealgorithms32364 жыл бұрын

    Superb explanation Thank you Sir...

  • @theartist8835
    @theartist88355 жыл бұрын

    Actually the observer pattern is much more abstract and braod than that. It has to be general. I know that you are trying to make it simple so everyone understands it, but in doing so, you missed the principle of the observer pattern which is to make code flexible and easy to be added to by creating interfaces and classes that implement the interfaces and then under these implementing classes we can have as many subscribers and channels as we want. The way you did it is just normal java code with no design pattern.

  • @shivakumar-kh3yp

    @shivakumar-kh3yp

    5 жыл бұрын

    Absolutely true

  • @backclover9651

    @backclover9651

    2 ай бұрын

    yes brother I thought the same thing

  • @vijayr6540
    @vijayr65404 жыл бұрын

    Very understandable way , thankyou telusko

  • @johnDanu
    @johnDanu5 жыл бұрын

    U rocks always... Student of telusko...

  • @udhayasankar113
    @udhayasankar1135 жыл бұрын

    Great work sir...pls make a design pattern series

  • @dien2971
    @dien29714 жыл бұрын

    Your explanation is not academic. It's easy to understand! Thank you I'm just seeing your register numbers are 999K. Wow, congratulations! Hope you reach 1M subcribers point!!

  • @joejones5746
    @joejones57463 жыл бұрын

    Brilliant analogy !!!

  • @vitorpereira316
    @vitorpereira3164 жыл бұрын

    Thank you so much Telusko

  • @sharjeel_mazhar
    @sharjeel_mazhar2 жыл бұрын

    Just mind blowing sir!

  • @mustafahabeb3584
    @mustafahabeb35848 ай бұрын

    thank you very much very simple and easy to understand

  • @alimodz6253
    @alimodz62533 жыл бұрын

    you have great explanation skills :D

  • @VersatileAnthem
    @VersatileAnthem3 жыл бұрын

    thank you so much sir. very clear explanation.

  • @kishorgowda6138
    @kishorgowda61384 жыл бұрын

    Simply super😍🤟Thanks..

  • @saurbhdhoble
    @saurbhdhoble5 жыл бұрын

    Just a random question, I have lot of nested if else statement in my project, how to avoid using nested if else?

  • @b_1729-j8j
    @b_1729-j8j7 ай бұрын

    I purchased a GFG course about System Design but that is not at all good but this video cleared my doubts.

  • @pandiyarajramu749
    @pandiyarajramu7492 жыл бұрын

    Good Explanation..Thank you

  • @theodhorzhobro4646
    @theodhorzhobro46464 жыл бұрын

    Thank u a mil for this amzing video wow

  • @tejeswarpala2841
    @tejeswarpala2841 Жыл бұрын

    good explanation. so clear now. small doubt: during unsubscribing, only subscriber is removed from the list of subs in the channel object but not the channel field from the subscriber object. forgot ?

  • @shikharchaudhary6984
    @shikharchaudhary69844 жыл бұрын

    Amazing explanation

  • @drakezen
    @drakezen5 жыл бұрын

    Since you are making videos of Design Patterns, can you provide explanations of the various patterns using functional style?

  • @kaarthikchinni
    @kaarthikchinni Жыл бұрын

    Awesome sir... 🙂

  • @jayantkandpal3784
    @jayantkandpal37845 жыл бұрын

    Hey naveen, is it the same while implementing the code logic for suscriber notification for such a big platform like youtube or some db coding and logics are also required?

  • @sangeetagupta7957
    @sangeetagupta7957 Жыл бұрын

    Superb explanation

  • @vedrathi2346
    @vedrathi23465 жыл бұрын

    Can you please make more python videos, some suggestions can be algorithms and ai, games using pygame, ethical hacking, data analysis and data visualization.

  • @user-vy6td1uq7m
    @user-vy6td1uq7m2 жыл бұрын

    Thank you very much

  • @seshagirik4066
    @seshagirik40662 жыл бұрын

    Thanks!

  • @jitendraruley
    @jitendraruley5 жыл бұрын

    It was nice dear sir.

  • @rjoconnor3443
    @rjoconnor34433 жыл бұрын

    V good clear video

  • @anujgadge5313
    @anujgadge53133 жыл бұрын

    Please continue this series...

  • @FadingDreams
    @FadingDreams Жыл бұрын

    Still helpful after 4 years❤

  • @Talbuk
    @Talbuk4 жыл бұрын

    Hey Telusko, thank you very much for your great videos! I got a simple question, are these patterns static in it's architecture or is it allowed, to change it for special use-cases? I rewrote this pattern by myself just to internalize the idea behind it, but called the method unregisterSubscriber and registerSubscriber from the class channel in the method unSubscribe and subscribe from Subscriber every time a subscription or unsubsctiption from a Subscriber takes place, so that the channel doesn't have to call the method explicitly and only gets informed about the new subscription or unsubscriptions. Also, evey time a new video is being uploaded, I don't call the update-method from subscribers, but send an update method from the channel class to all subscribers. Would that still count as observerpattern or is it strictly required that both sides have to register each other and the update method is in the class of those, who get informed? Keep up the good work, love it!

  • @MDASIF-wo7ck
    @MDASIF-wo7ck5 жыл бұрын

    Actually very nice example.....

  • @bhushanbhange7065
    @bhushanbhange70654 жыл бұрын

    @Telusko @Navin which software do you use to create video. Presentation and you video in it

  • @sarthakuiit
    @sarthakuiit2 жыл бұрын

    Well explained. Just one potential correction - upload() is storing video title to channel title.

  • @rithulraj3348
    @rithulraj33485 жыл бұрын

    Thank you brother

  • @ijanijigar
    @ijanijigar5 жыл бұрын

    Respect, naveen.

  • @utkarshsharma1867
    @utkarshsharma18672 ай бұрын

    Sir, u r genius !

  • @arshahin9803
    @arshahin98032 жыл бұрын

    great boss!

  • @mansinigam1
    @mansinigam15 жыл бұрын

    you are awesome (Y) Keep up the good work (Y)

  • @TECHINSPEC
    @TECHINSPEC3 жыл бұрын

    Thank you sir

  • @jayakumargutha
    @jayakumargutha4 жыл бұрын

    It's very realistic example. This is more than enough to understand the pattern. Good Convey....

  • @ninadsentinel
    @ninadsentinel3 жыл бұрын

    Is this solution not susceptible to concurrent modification exception if there are additions and removal all at once in subscriber list assuming the subscribe and unsubscribe events would happen independently in separate threads in real world

  • @mujtabakamal9538
    @mujtabakamal95384 жыл бұрын

    Hi, I have been working with TCP Socket, I want to know how can we observe data from socket and pass it to view (web page/jsp) in (Java Spring boot). Like a Real time data, to show Stock Market stats, with using any timer. Can you please help me with this issue. Thanks

  • @bl7327
    @bl7327 Жыл бұрын

    U just earned a subscriber.

  • @smeeangle
    @smeeangle5 жыл бұрын

    In 11:42 kindly elaborate why perform s1.subscribeToChannel(telusko); I tried without it then video title got null . Thank you .

  • @premk191
    @premk1914 жыл бұрын

    Hey Naveen, I often get confused on how come Subscriber (Observer) get the update() method. And that method contains the "video uploaded" message. I think managing that message should be responsibility of channel (Subject)

  • @jiteshkatkar9031
    @jiteshkatkar90315 жыл бұрын

    Hi sir, Is there any future for vaadin framework???

  • @PraveenKumar-nq1wg
    @PraveenKumar-nq1wg2 жыл бұрын

    Hi Naveen, Kindly make video recordings for all 23 design patterns, hope we have few recordings already and kindly help us with the missed ones.

  • @rahulrsavant
    @rahulrsavant Жыл бұрын

    Thanks, example is matching to observer pattern

  • @ghanshyamkhatri3541
    @ghanshyamkhatri35415 жыл бұрын

    Awesome!!!

  • @stephena1156
    @stephena11565 жыл бұрын

    Nice example

  • @satishmohapatra95_009
    @satishmohapatra95_0094 жыл бұрын

    Hi Navin, Can you please upload more design pattern video, If possible can you please give any existing example which Java is used internally.

  • @yogeshdhavan1550
    @yogeshdhavan15503 жыл бұрын

    W'll inform everyone..hahaha...best explanation ever

  • @jaysahu357
    @jaysahu3574 жыл бұрын

    very nice sir