RxJs - Stream Analogs in Real Life (2021)

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ธ.ค. 2024

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

  • @DecodedFrontend
    @DecodedFrontend  3 ปีที่แล้ว +1

    If you have Angular interview anytime soon, the best way to prepare for it is Mock-Interview! In my new course "Angular Interview Hacking" you can get an option to have a mock interview with Google Developer Expert in Angular and get access to a constantly growing database of the most popular Angular interview questions and detailed answers! Check this out here: courses.decodedfrontend.io/courses/angular-interview-hacking

  • @denisbielishev
    @denisbielishev 3 ปีที่แล้ว +15

    In my opinion it is the best way to explain how it works. I always try to do the same with my colleagues.

  • @a.c.vermillion
    @a.c.vermillion 3 ปีที่แล้ว +2

    Discovered this analogy a year or so ago and since then everything made sense with RxJs, can't look back. Great video!

  • @bukanaka
    @bukanaka 2 ปีที่แล้ว +3

    Отличный пример. До этого визуализировал себе поток как массив с данными, но с водопроводной трубой всё стало ещё глубже к пониманию.

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

      Рад слышать :) массив данных тоже хороший пример на самом деле.

  • @anjalitanpure6310
    @anjalitanpure6310 ปีที่แล้ว

    You have explained in a best possible way using real life example. Watched your most of the videos, you explained everthing really good and in easy manner. Thank you.

  • @NigelStepney
    @NigelStepney 29 วันที่ผ่านมา +1

    Thank you for this!, the best video to see and understand rxjs. Now I can continue with the rest of your videos about it.🎉😂

    • @DecodedFrontend
      @DecodedFrontend  22 วันที่ผ่านมา

      I hope you will like them as well ;)

  • @krisnarusdiono1304
    @krisnarusdiono1304 3 ปีที่แล้ว +1

    the way you represent rxjs stream is BRILLIANT! ... anyone should know your channel buds especially for people who's learning Angular

  • @yapayzeka
    @yapayzeka 3 ปีที่แล้ว +1

    7:15 I think release air effects stream. not good example. maybe you measure the water temperature and log it. that would be a very proper "tap" case.

  • @ugochukwuumerie6378
    @ugochukwuumerie6378 3 ปีที่แล้ว +2

    Wow amazing stuff. I can literally now visualise the concepts whilst working with rxjs. Thanks for this wonderful video

  • @kenanareda
    @kenanareda 3 ปีที่แล้ว +1

    I wish that I knew this amazing video before! Big thank for this richful explanation!

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

    Супер. Этот образ с водой и краном именно так как я сам себе представлял Observables, но Вы конечно все максимально наглядно на схемах нарисовали. Спасибо большое.

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

    Wow.. it was the best explanation I ever heard. Thanks for this beautiful content.

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

    Very well explanation, which ever had seen and also thanks for the today's meeting about Reactive Form)

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

      Hi Oleksandr! Thank you for you feedback:) glad you liked the today’s talk 😉

  • @titokris5162
    @titokris5162 3 ปีที่แล้ว +1

    Great methodology and visualization. To me you nailed and passed the different use cases and above all it's understanding!!! Thanks

  • @rougeassasign
    @rougeassasign 3 ปีที่แล้ว +2

    yes !!! More of these please. Streams are still not clear for me.

  • @rezaerabby1097
    @rezaerabby1097 6 หลายเดือนก่อน +1

    wow, thanks ,
    this is probably the best explanation ever

  • @elisaschnabel1811
    @elisaschnabel1811 3 ปีที่แล้ว +2

    Great video and great visualization! I will recommend this video to my apprentices!

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

    Great video and great analogy with the pipes. Thank you!

  • @AmarSingh-uw1db
    @AmarSingh-uw1db ปีที่แล้ว

    Yes, this helped me so much for understanding rxjs. Gratitude Sir🙌🙌

  • @awabalbaalbaky3508
    @awabalbaalbaky3508 3 ปีที่แล้ว +2

    You are really amazing, keep going 👍

  • @DecodedFrontend
    @DecodedFrontend  3 ปีที่แล้ว +8

    How do you imagine streams? Do you also use analogs from real life or for you marble diagrams are just enough? :)

    • @p.s29
      @p.s29 3 ปีที่แล้ว +2

      Yeah. I use lake as a reference. Hehe. :)

    • @DecodedFrontend
      @DecodedFrontend  3 ปีที่แล้ว +1

      yeeeah! Good one as well ;)

    • @ІлляПіранья
      @ІлляПіранья 3 ปีที่แล้ว +1

      I think about potato, when write in rxjs, is it fine?

    • @DecodedFrontend
      @DecodedFrontend  3 ปีที่แล้ว +1

      @@ІлляПіранья absolutely 😄

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

      The one that did if for me back in the days was thinking of it as subscribing to a newsletter. They well keep arriving for example once a week as long as I am subscribed. When i unsubscribe they stop arrive. And if nobody is subscribed to the newsletter, nothing is sent out / nothing happens.

  • @Moewie
    @Moewie 3 ปีที่แล้ว +1

    insanely good example

  • @malenalucero6473
    @malenalucero6473 3 ปีที่แล้ว +2

    I found it really useful! Rxjs is still very difficult for me to understand because I tend to see data as something static that should not be mutated and when I use observables y want them to RETURN something I can work with when the request is finished but that's not how observables work and I know it but I still don't feel comfortable with the concept of streams, so this was great and I hope you can make more videos with real usage examples of Rxjs in Angular. Thank you!

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

      Thank you for your feedback! :) I am glad to hear that you liked this idea. If audience finds this way of rxjs explanation also useful I will do more videos about some specific rxjs operators using analogs from real life :)

  • @RaviKumar-im7kg
    @RaviKumar-im7kg 3 ปีที่แล้ว +1

    Awesome way of explanation 🙂 with real time situation 🔥 keep rocking

  • @dmitryaronov8197
    @dmitryaronov8197 ปีที่แล้ว

    It was really nice explanation! Дуже гарно пояснив)

  • @ariMuayad
    @ariMuayad 3 ปีที่แล้ว +1

    Thank you, always with the best content. You're spoiling your viewers. Can you create deep dipe videos into rxjs.

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

      Haha :) Hope not so much...
      Regarding rxjs deep dive not sure so far but let's see ;)

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

    very nice analogy, you are talented

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

    Crazy and realistic example of water connection in house building. Always loved your content.
    const stream$ = of('water')
    😀

  • @vasylsidelnyk2776
    @vasylsidelnyk2776 ปีที่แล้ว

    Best explanation ever seen before.

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

    Keep up the good work, I love the visualization, it helps a lot in learning and i get it now. Thank you so much.

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

    WOW... What an analogy. Really appreciated for analogy😀

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

    This is a very good explanation! Thank you!

  • @mohamadborzouei4711
    @mohamadborzouei4711 ปีที่แล้ว

    Good job. I think this is the simplest way to explain streams.

  • @vinodsharma-ok1mv
    @vinodsharma-ok1mv 3 ปีที่แล้ว

    Love your unique way to teach...

  • @innocentmazando3808
    @innocentmazando3808 3 ปีที่แล้ว +9

    This is one perfect description of streams, if only I learnt this earlier I would have suffered less :)
    Thanks @Decoded Froontend

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

      Thanks for feedback:) Glad that it was helpful!

  • @andrewarosario
    @andrewarosario 3 ปีที่แล้ว +1

    Amazing examples! Great work!

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

    Your content is always awesome and above average. Keep the content coming ❤️

  • @sanketjain7788
    @sanketjain7788 ปีที่แล้ว

    Really grateful to you! Thank you!

  • @pranavsarang
    @pranavsarang 3 ปีที่แล้ว +1

    Please make video on how actually shadow dom works generally in angular and how it is different from real dom and virtual dom

  • @georgimollov
    @georgimollov 3 ปีที่แล้ว +1

    I have always imagine streams like electricity flow through power lines but struggled with operators. Watching your video kinda make me think for operators like electrical elements that transfor the electricity. But realized maybe pipes and water is more helpful. Good video as always

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

      Yeah.. electricity is also fine but agree that it is harder :) In order to explain operators there, you need some knowledge about transistors, resistors, etc which might act as operators but I am not good in this area, so I might be wrong 😀

  • @romaknocks7986
    @romaknocks7986 3 ปีที่แล้ว +1

    Thanks a lot for your work man!

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

    Cool and useful explanation, thank you!

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

    keep going with this important topic plz.. thanks a lot

  • @alsaeedfayed2658
    @alsaeedfayed2658 ปีที่แล้ว

    This is extremely awesome !!

  • @aleksandrm3466
    @aleksandrm3466 3 ปีที่แล้ว +1

    Thank you very much, super topic. It would be very interesting to see more examples with operators. For example, you can start with simple examples of processing events and sending data... Preferably real examples from projects.

    • @DecodedFrontend
      @DecodedFrontend  3 ปีที่แล้ว +1

      Next vid will be exactly about that, so stay tuned ;)

  • @RamKumar-es3mp
    @RamKumar-es3mp ปีที่แล้ว

    Really great content .Please do more examples.

  • @SheriffZmroka
    @SheriffZmroka ปีที่แล้ว

    Amazing video. But I would love to see it in the form of an article. Well, more deeply about mental models.

  • @RAJU9622
    @RAJU9622 3 ปีที่แล้ว +1

    Excellent explanation

  • @balajeebala7810
    @balajeebala7810 3 ปีที่แล้ว +1

    You are the best 🔥♥️

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

    Yes definitely. Helpful.

  • @mrthefankyy
    @mrthefankyy 3 ปีที่แล้ว +1

    Need a course about RxJs with your explanation ;)

  • @coldcircuit99
    @coldcircuit99 3 ปีที่แล้ว +1

    I was just implementing debounced search in react with rxjs. What is this magical timing :d

    • @DecodedFrontend
      @DecodedFrontend  3 ปีที่แล้ว +1

      It was also one of the first things I have implemented with rxjs 😄

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

    Great video! Thank you!

  • @markcooke4866
    @markcooke4866 2 หลายเดือนก่อน

    I would suggest that a real-life example of Promises is a pizza delivery. Exactly one [order] in and one delivery out.

  • @Manuel-fp6ni
    @Manuel-fp6ni ปีที่แล้ว

    great job! thank you from Perú!!!

  • @prabhuuiux
    @prabhuuiux 10 หลายเดือนก่อน

    nice explanation, can you explain in detail about ag-grid

  • @otmanm4095
    @otmanm4095 3 ปีที่แล้ว +1

    Greeaaaat video !

  • @krunalkamble1833
    @krunalkamble1833 3 ปีที่แล้ว +1

    Excellent

  • @JmonteroArg
    @JmonteroArg 3 ปีที่แล้ว +1

    I really like this mental model for understanding RxJS.
    However it becomes very difficult to visualise some of the advanced operators using the water pipe analogy.
    Maybe for that kind of scenarios is better o think about it as a factory conveyor belt with parts (parts being the water and the conveyor belt being the pipe) that require special threatments and have time constraints, etc.

    • @DecodedFrontend
      @DecodedFrontend  3 ปีที่แล้ว +1

      Hi Joseph! You are absolutely right, some other models describe better other parts of rxjs. I also use many others like “the road and cars” or the one you described as well :) the model from the video was just the fist one I recognized and which helped me the most and after that things got easier:)

  • @amar-iby
    @amar-iby 3 ปีที่แล้ว +1

    The best !

  • @denns0r
    @denns0r 3 ปีที่แล้ว +2

    That was actually great for understanding RXJS! But I somewhat disagree with the Promise addition. Most of the time I simply want to get or post data to an api. I do not need a stream for that, because it's a one-time thing. Unless I want to be able to cancel the ongoing request of course (which is also possible with promises, but kind of ugly). In my applications, there is not much data actually that is "streaming" into my application. It's more "get-data, show data, change data, send data" scenarios. So I end up in using Promises, Promise.all() and using async/await which makes my code way more synchronously readable than using streams. But that's maybe only my perspective 🤷‍♂️

    • @p.s29
      @p.s29 3 ปีที่แล้ว +1

      Yeah, I also agree with using async/await when you know the observable will emit single data (httpClient, etc).
      It makes the code more readable and the control is returned to the main function after the sub function is executed..

  • @swapnasaritnayak2569
    @swapnasaritnayak2569 3 ปีที่แล้ว +1

    Awesome .

  • @zzing
    @zzing 3 ปีที่แล้ว +1

    I think using the $ on waterPipes$ would be out of convention given it isn't actually an observable.

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

      I suspect he added .subscribe later on and didn’t remove the $, as now it would be returning the subscription object as you pointed out.

  • @psycodepath
    @psycodepath 3 ปีที่แล้ว +1

    I miss your content sir..

  • @sharanputhran83
    @sharanputhran83 4 หลายเดือนก่อน

    Great video

  • @alexshubin1
    @alexshubin1 ปีที่แล้ว

    Funny! And I was imagine marble diagrams like there is a gun that shots with portion of data )))

  • @AnamikaSingh-qf8su
    @AnamikaSingh-qf8su ปีที่แล้ว

    When do one use Promise vs Observables

  • @halynaua
    @halynaua 10 หลายเดือนก่อน

    wow:) thank you

  • @GrupoSSMC
    @GrupoSSMC ปีที่แล้ว

    The video is very interesting, but how can I apply this if I have an endpoint made with webflux that returns a content-type of text/event-stream?

  • @F.C.Poet_
    @F.C.Poet_ 2 ปีที่แล้ว +1

    it helps )

  • @rahultej8352
    @rahultej8352 6 หลายเดือนก่อน +1

    ❤❤❤

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

    thanks x 100

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

    Love u bro

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

    Не оставляйте краник открытым)

  • @SergeyLevandovski
    @SergeyLevandovski 6 หลายเดือนก่อน

    Promise = grab bucket and get water from well )

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

    Граф Ке Ле 😂😂

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

      Можно уже нарезку делать из переводов 😂

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