Тёмный

Observer Design Pattern in Java 

Telusko
Подписаться 2,3 млн
Просмотров 166 тыс.
50% 1

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...

Наука

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

 

10 июл 2019

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 174   
@prasadbonam4430
@prasadbonam4430 5 лет назад
I can say one thing " ur examples are so Realistic easy 2 understand" keep it up Good work bro n Thank you :)
@siddharthmohanty7106
@siddharthmohanty7106 3 года назад
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
@muhammadsaleh816 4 года назад
You are making life easier for java developers Love from Pakistan :)
@vikramkumar-mi1yk
@vikramkumar-mi1yk 2 года назад
All the playlists were really very good and informative. Thanks, Navin for such wonderful content.
@BakhtyarQadri
@BakhtyarQadri 5 лет назад
Your thinking way is very appreciatable.Thanks to show me this way of logic building.
@anu608497
@anu608497 4 года назад
Thanks Telusko. Your examples are very intuitive and helpful. I am able to learn Observable Design Pattern easily now
@dr.venugopalrajupalem6526
@dr.venugopalrajupalem6526 4 года назад
Wonderful explanation and the example of the Observer Pattern I have ever seen! You are my favourite Teacher. Thanks.
@vladanulardzic5859
@vladanulardzic5859 5 лет назад
Par excellence ! Perfect explained. Perfect example. Especially direct programming in the java. Keep on !
@vishalsingh-dj6od
@vishalsingh-dj6od 4 года назад
I have watched multiple observer design pattern video, I must say this is the best one and more realistic. Keep it going boss..
@jilanishaik8791
@jilanishaik8791 4 года назад
Easily able to understanding by giving simple examples with clear explainations. Thanks Naveen.
@karthik-ex4dm
@karthik-ex4dm 3 года назад
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 RU-vid 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
@yazilnauman1243
@yazilnauman1243 5 лет назад
Its really amazing that....this lengthy process is very easy to understand by you Sir😍😍😍😍
@khsbangash
@khsbangash 4 года назад
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 !
@alexissanchezbro
@alexissanchezbro 4 года назад
Great video code along, this really helped me put the theory into practice. Thank you
@satyabatigoswami1735
@satyabatigoswami1735 5 лет назад
Thank you sir. I was looking for visitor pattern video and found this new concept. Thanks a lot
@MsGayathri19
@MsGayathri19 5 лет назад
Wow simply explained observer design pattern easily .. thank so
@gigimushi6705
@gigimushi6705 2 года назад
finaly, with your exemple i understand how to implement the observer pattern. you are the best.
@sohankundu448
@sohankundu448 Год назад
Please continue the series. It would be very much helpful.
@user-cq7db9ij1o
@user-cq7db9ij1o 3 года назад
This is called teaching! Excellent
@uma4525
@uma4525 4 года назад
Quick and nice explanations that's very easy to understand - telusko learnings. From this channel ,I have learnt a lot. Thanks much Navin
@sreekavya5743
@sreekavya5743 4 года назад
I got very good understanding with ur explanation sir.Thank you!!
@ranjithv133
@ranjithv133 5 лет назад
Hi Navin, I really have to say this. thank you. you surely are changing my life for good. keep up the good work.
@pybrowrynn
@pybrowrynn 5 лет назад
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.
@vishnuvardhanreddy8584
@vishnuvardhanreddy8584 5 лет назад
Yeah I always waiting for your video content .... Everytime
@dohruba
@dohruba 3 года назад
Your example was awesome! Thanks, bro :D
@kalidindiprashanth7363
@kalidindiprashanth7363 5 лет назад
Hi naveen, can you also make videos on Java memory management and how to improve performance of java applications.
@amyd7041
@amyd7041 5 лет назад
Great content! Thank you so much 👍🏻
@libinthomas5349
@libinthomas5349 Год назад
Thanks a lot 🙏 Expecting more videos like this.
@ShadowWalker683
@ShadowWalker683 3 года назад
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.
@alinehme1412
@alinehme1412 Год назад
Crystal clear, thanks a lot!
@mananjain9177
@mananjain9177 3 года назад
Amazing series....can we have more design patterns explained through some more videos under this playlist?
@raws4209
@raws4209 3 года назад
thank you for this awesome explanation!!!!
@khadijaaitbouiramouin7776
@khadijaaitbouiramouin7776 3 года назад
Just amazing, a smart way to explain things, Thank u soo much
@priyagupta-ko2mk
@priyagupta-ko2mk 2 года назад
Thanks Naveen . You have explained it very well.
@shashidharkrovvidi4998
@shashidharkrovvidi4998 3 месяца назад
such an easy to understand example! thank you :)
@guitaristsehokim
@guitaristsehokim 4 года назад
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?
@nandininema7123
@nandininema7123 3 года назад
Thank you Naveen for your awesome videos.
@vijayr6540
@vijayr6540 4 года назад
Very understandable way , thankyou telusko
@VersatileAnthem
@VersatileAnthem 3 года назад
thank you so much sir. very clear explanation.
@ThaiCaliforniacom
@ThaiCaliforniacom 4 года назад
Awesome I can use this concept with JavaScript too. Thanks a lot
@catlord69
@catlord69 4 года назад
Amazing explanation !
@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 :}
@rayasamkiran
@rayasamkiran 2 года назад
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 RU-vid class is ... Unsubscribe is called only from subscriber side but not from channel side...
@aswarthanarayanareddyb176
@aswarthanarayanareddyb176 5 лет назад
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
@nagank90
@nagank90 5 лет назад
Great explanation thank you so much.
@sanjaypattnaik3288
@sanjaypattnaik3288 4 года назад
Great Explanation. Good Example.
@Talbuk
@Talbuk 4 года назад
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!
@crazeeealgorithms3236
@crazeeealgorithms3236 4 года назад
Superb explanation Thank you Sir...
@FadingDreams
@FadingDreams 11 месяцев назад
Still helpful after 4 years❤
@mustafahabeb3584
@mustafahabeb3584 7 месяцев назад
thank you very much very simple and easy to understand
@subashkannan949
@subashkannan949 Год назад
well explained🔥Also try to upload the other design patterns as well it will be very useful for us...!!
@jayantkandpal3784
@jayantkandpal3784 5 лет назад
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?
@joejones5746
@joejones5746 3 года назад
Brilliant analogy !!!
@bhargavthota152
@bhargavthota152 6 месяцев назад
I purchased a GFG course about System Design but that is not at all good but this video cleared my doubts.
@vitorpereira316
@vitorpereira316 4 года назад
Thank you so much Telusko
@udhayasankar113
@udhayasankar113 5 лет назад
Great work sir...pls make a design pattern series
@johnDanu
@johnDanu 5 лет назад
U rocks always... Student of telusko...
@theartist8835
@theartist8835 5 лет назад
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 29 дней назад
yes brother I thought the same thing
@sharjeel_mazhar
@sharjeel_mazhar 2 года назад
Just mind blowing sir!
@sarthakuiit
@sarthakuiit 2 года назад
Well explained. Just one potential correction - upload() is storing video title to channel title.
@alimodz6253
@alimodz6253 3 года назад
you have great explanation skills :D
@anujgadge5313
@anujgadge5313 3 года назад
Please continue this series...
@ijanijigar
@ijanijigar 5 лет назад
Respect, naveen.
@kishorgowda6138
@kishorgowda6138 3 года назад
Simply super😍🤟Thanks..
@drakezen
@drakezen 5 лет назад
Since you are making videos of Design Patterns, can you provide explanations of the various patterns using functional style?
@dien2971
@dien2971 4 года назад
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!!
@pandiyarajramu749
@pandiyarajramu749 2 года назад
Good Explanation..Thank you
@saurbhdhoble
@saurbhdhoble 5 лет назад
Just a random question, I have lot of nested if else statement in my project, how to avoid using nested if else?
@theodhorzhobro4646
@theodhorzhobro4646 4 года назад
Thank u a mil for this amzing video wow
@bl7327
@bl7327 Год назад
U just earned a subscriber.
@ghanshyamkhatri3541
@ghanshyamkhatri3541 5 лет назад
Awesome!!!
@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 ?
@bhushanbhange7065
@bhushanbhange7065 4 года назад
@Telusko @Navin which software do you use to create video. Presentation and you video in it
@shikharchaudhary6984
@shikharchaudhary6984 4 года назад
Amazing explanation
@MDASIF-wo7ck
@MDASIF-wo7ck 5 лет назад
Actually very nice example.....
@rahulrsavant
@rahulrsavant Год назад
Thanks, example is matching to observer pattern
@arshahin9803
@arshahin9803 2 года назад
great boss!
@hakobhn
@hakobhn 9 месяцев назад
Thanks for the interesting video. Just wondering, about the subscription method implementation part. Is it correct to keep two diff methods and call them separately? For example, when a subscriber subscribes to some channel, aggregation into the channel's list could be called in that method. Now, you can miss the subsequent subscribeChannel method call for the subscriber, and it will break the logic. I guess, it can be treated as a bug. Isn't it? Thanks
@utkarshsharma1867
@utkarshsharma1867 Месяц назад
Sir, u r genius !
@sangeetagupta7957
@sangeetagupta7957 Год назад
Superb explanation
@jayakumargutha
@jayakumargutha 4 года назад
It's very realistic example. This is more than enough to understand the pattern. Good Convey....
@Nelipson
@Nelipson 10 месяцев назад
It should print who is uploading as well and we can use getter for title. The example would be better if there was case without and with observer.
@seshagirik4066
@seshagirik4066 2 года назад
Thanks!
@user-vy6td1uq7m
@user-vy6td1uq7m 2 года назад
Thank you very much
@mansinigam1
@mansinigam1 4 года назад
you are awesome (Y) Keep up the good work (Y)
@rithulraj3348
@rithulraj3348 5 лет назад
Thank you brother
@vedrathi2346
@vedrathi2346 5 лет назад
Can you please make more python videos, some suggestions can be algorithms and ai, games using pygame, ethical hacking, data analysis and data visualization.
@kaarthikchinni
@kaarthikchinni Год назад
Awesome sir... 🙂
@chiranjib2patra
@chiranjib2patra 3 года назад
This one is awesome :)
@rjoconnor3443
@rjoconnor3443 3 года назад
V good clear video
@premk191
@premk191 4 года назад
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)
@yogpooja-vq1pp
@yogpooja-vq1pp 3 года назад
Hi Naveen, you are doing superb job. I just have a doubt in this Observer DP. We are calling telusko.subscribe(s1)... methods inside RU-vid class. but if we are already calling s1.subscribeChannel(telusko) then it shouldn't be necessary right?
@devOmarAZ
@devOmarAZ 3 года назад
fantastic explanation xd
@TECHINSPEC
@TECHINSPEC 3 года назад
Thank you sir
@srikanthnalluri9610
@srikanthnalluri9610 5 лет назад
Sir please upload more designpatterns topics
@satishmohapatra95_009
@satishmohapatra95_009 4 года назад
Hi Navin, Can you please upload more design pattern video, If possible can you please give any existing example which Java is used internally.
@choppedzombieunknown4583
@choppedzombieunknown4583 3 года назад
Your a legend
@parthaprotim4547
@parthaprotim4547 5 лет назад
1:37 - yes Navin. I wait
@stephena1156
@stephena1156 5 лет назад
Nice example
Далее
Composite Design Pattern Practical
17:04
Просмотров 107 тыс.
10 Design Patterns Explained in 10 Minutes
11:04
Просмотров 2,2 млн
Functional Interface | Lambda Expression in Java
13:56
Просмотров 137 тыс.
What is JPA? | JPA Implementation
26:21
Просмотров 376 тыс.
Prototype Design Pattern in Java
18:30
Просмотров 140 тыс.
Spring | Autowire | Dependency Injection | Spring Boot
18:23
Observer Pattern - Design Patterns (ep 2)
49:47
Просмотров 555 тыс.
Decorator Design Pattern
12:57
Просмотров 422 тыс.
YOTAPHONE 2 - СПУСТЯ 10 ЛЕТ
15:13
Просмотров 42 тыс.
Спидран по ПК
0:57
Просмотров 31 тыс.