RxJs Zip - Real-Life Analog of ZIP operator (Reactive Dürüm, 2021)

  Рет қаралды 12,553

Decoded Frontend

Decoded Frontend

Күн бұрын

In this video, we continue to look for real-life analogs for #rxjs operators, and today we are going to look at the ZIP operator. This operator allows you to combine multiple streams together and emit an array of values arrived from combined streams. Additionally, this operator cares about the order of how values should be paired (it is hard to explain it with text - better one time to see). I hope you will find this video useful. Stay tuned and enjoy watching!
Courses:
⭐ Angular Interview Hacking
🔗 courses.decodedfrontend.io/co...
⭐ Angular Material Theming Course (Advanced)
🔗 courses.decodedfrontend.io/co...
⭐ Performant Graphql Backend in 1 Day by Using Hasura Engine
🔗 courses.decodedfrontend.io/co...
🕒 Time Codes:
00:00:00 - Intro;
00:00:39 - Mental model for ZIP operator;
00:02:56 - Let's code it!;
00:13:20 - Outro;
#rxjs #angular #webdevelopment

Пікірлер: 117
@artempushnev1855
@artempushnev1855 7 күн бұрын
Шавуха!!!!😂 It's a great video! Thanks for the explanation!
@averiivy1
@averiivy1 2 жыл бұрын
Please make a series of rxjs operators like forkjoin and combinelatestwith. And also flattening operators like mergemap, switchmap,etc
@DecodedFrontend
@DecodedFrontend 2 жыл бұрын
It will be soon ;)
@averiivy1
@averiivy1 2 жыл бұрын
@@DecodedFrontend thank you so much ! Looking forward to it!!!
@georgimollov
@georgimollov 2 жыл бұрын
@@DecodedFrontend this will be highly appreciated, very difficult to create a mental map for all the operators out there in rxjs
@Billiam112
@Billiam112 2 жыл бұрын
withLatestFrom vs combineLatest would be neat too.
@aleksandrm3466
@aleksandrm3466 2 жыл бұрын
Спасибо за работу и шавуху)))
@DecodedFrontend
@DecodedFrontend 2 жыл бұрын
Хаха обращайтесь! 😄
@joshblf
@joshblf 2 жыл бұрын
Adding mental models to your videos is genius. Especially for RxJs operators. 👍 Great job
@DecodedFrontend
@DecodedFrontend 2 жыл бұрын
Glad you liked it :)
@oskarzajac8935
@oskarzajac8935 Жыл бұрын
wow, thanks for making the effort and making zip human readable
@kishorkadavil550
@kishorkadavil550 2 жыл бұрын
Great content. Nobody can explain more clearly than this. Thanks, buddy. Expecting more such content.
@DecodedFrontend
@DecodedFrontend 2 жыл бұрын
Thanks, Kishor! Glad to hear that because I wasn't completely sure if such a way of explanation will get any positive feedback :)
@eXpertise7
@eXpertise7 2 жыл бұрын
Great video, make more of these RxJS real life analogs! thanks!!
@DecodedFrontend
@DecodedFrontend 2 жыл бұрын
Thanks for feedback! There will be ;)
@denisbielishev
@denisbielishev 2 жыл бұрын
It's a good decision create videos about RxJS operator. It's useful for us and for you.. There are a lot of operators, that's why you can create several decades of videos
@SonuSindhu
@SonuSindhu 2 жыл бұрын
Thanks, wanted more videos on rxjs
@VipinRawat_Offcial
@VipinRawat_Offcial 2 жыл бұрын
As usual awesome 🙂
@haroldpepete
@haroldpepete 2 жыл бұрын
that is one of the best videos to understand the behavior of those operators, thank
@ozguryilmaz8152
@ozguryilmaz8152 2 жыл бұрын
Thanks for your clear explanation 🙏 Since you are so much interested in dürüm issue, I would like to give further information in return for your favor :) 'Döner dürüm' in Turkey is a kind of kebap, which is separated from the others as the way of its service style. The main name of the food is 'Döner', which means turning in Turkish. Therefore, it notifies that this kind of kebap is not cooked on a horizontal barbecue but on a vertical position and continuously turns during the cooking process. 'Dürüm' as a noun comes from the turkish verb dür-mek, which means wrapping. If the döner is serviced on a plate, it is called service-döner, on the other hand, if it is wrapped by a bread, it is called dürüm-döner. Shawarma is an Arabic word, originated from Turkish verb çevir-mek, which means also turning. Just because, I've been to Arab countries, I could observe the fact that some regions use both definitions of shawarma and döner, whereas some others use only one of them.
@DecodedFrontend
@DecodedFrontend 2 жыл бұрын
wow, damn... I thought I was an expert in dürüms but it looks like I am just a stupid newbie comparing to you :D it was indeed interesting, thanks👍
@ozguryilmaz8152
@ozguryilmaz8152 2 жыл бұрын
@@DecodedFrontend hahaha I would prefer to be relatively new in dürüms and an expert in Angular like you :) We look forward to the continuation of your useful lectures, thanks 🙏
@markusingvarsson2146
@markusingvarsson2146 2 жыл бұрын
Loved it! Such a great analogy.
@MrNigam1992
@MrNigam1992 2 жыл бұрын
Beautifully explained
@andrewarosario
@andrewarosario 2 жыл бұрын
Amazing explanation!
@CrusaderMen
@CrusaderMen 2 жыл бұрын
Thank you! This is great!
@letok2871
@letok2871 2 жыл бұрын
Супер видео!
@user-oz5nw2hi1f
@user-oz5nw2hi1f 2 жыл бұрын
Thank you. It's much better for understanding!
@castrojunin
@castrojunin 2 жыл бұрын
Incredible series of rxjs man :-)
@user-wh4pm2bj1q
@user-wh4pm2bj1q Жыл бұрын
Perfect!
@Isa-oo8mz
@Isa-oo8mz 2 жыл бұрын
Very cool video. Great explanation!
@swapnasaritnayak2569
@swapnasaritnayak2569 2 жыл бұрын
Awesome ❤️
@andpzk
@andpzk 2 жыл бұрын
Awesome!
@siju.mathew
@siju.mathew 2 жыл бұрын
Great explanation. Good job. Keep it up!
@vladlandcovschi9978
@vladlandcovschi9978 2 жыл бұрын
Best explanation ever
@valikonen
@valikonen 2 жыл бұрын
Fantastic job, thank you!
@katerynadanylenko9465
@katerynadanylenko9465 10 ай бұрын
Great explanation!! Thank you so much for your hand work 👍
@Faheem4449
@Faheem4449 2 жыл бұрын
Really loved Durum ❤️❤️😂😂. I was fun to learn
@rameshkumarveldurai5241
@rameshkumarveldurai5241 2 жыл бұрын
Great content. Thank you :)
@yuliakhitrukhina
@yuliakhitrukhina 2 жыл бұрын
Thank you! Great explanation with simple understandable examples)
@jakubdrewniak2668
@jakubdrewniak2668 2 жыл бұрын
analogy to durum is awesome, i will always remmeber how zip works with durum :D
@Bukratusi
@Bukratusi Жыл бұрын
man you are genious i know wha they do but u create a very nice analogy. awesome thnaks.
@krishnachaitanya102
@krishnachaitanya102 2 жыл бұрын
@Decoded Frontend, You are lit 🔥🔥🔥🔥🔥🔥🔥
@AmarSingh-uw1db
@AmarSingh-uw1db 10 ай бұрын
Gratitude Sirji ❤❤. Thanks for wisdom
@afsharanh
@afsharanh Жыл бұрын
wow this is the best explanation for zip and combineLatest operators, gj man!
@vijayu707
@vijayu707 2 жыл бұрын
Genius.. Very well explained. Very very underrated tech channel..
@Nabulio85
@Nabulio85 Жыл бұрын
very good demonstration, beautiful pedagogy
@yuriinadilnyi3029
@yuriinadilnyi3029 Жыл бұрын
so great explanation)
@MukeshSharma-xd4dn
@MukeshSharma-xd4dn 8 ай бұрын
Oh my God!! You are a gem, a sage. Today i got deep understanding of streams. Many thanks
@RamKumar-es3mp
@RamKumar-es3mp Жыл бұрын
Really Great content. Thanks
@woendi
@woendi 2 жыл бұрын
I was just about to google what the difference between zip() and combineLatest() was, the moment before you demonstrated :D Great Job
@aparnashankar2215
@aparnashankar2215 Жыл бұрын
Its very good and provides a good explanation for zip operator
@krisnarusdiono1304
@krisnarusdiono1304 2 жыл бұрын
quiet late for watching your latest videos, still worth it and this video is something new for me (also berloner durum) ... you are my mentor 🤞🏻😁
@frankretief6260
@frankretief6260 2 жыл бұрын
Please do more of these, awsome
@DecodedFrontend
@DecodedFrontend 2 жыл бұрын
Thanks for the feedback! I am glad you liked it ;)
@frontend3409
@frontend3409 2 жыл бұрын
Such a great example! Wow! The best explanation of zip operator in web!
@Favorite010499450
@Favorite010499450 2 жыл бұрын
Thank you for such a very clear explanation & example. I hope there is also another explanation about: - concatMap - exhaustMap - mergeMap - switchMap For me, those operators are very hard to wrap my head around.
@kashifalikhan4420
@kashifalikhan4420 Жыл бұрын
Very good explanation,
@5hrk
@5hrk 2 жыл бұрын
Шавуха))) улыбнуло)
@mustafasange
@mustafasange 2 жыл бұрын
Using shawarma as an example 😋. Wonderful! 👍
@tomaszdarowski9906
@tomaszdarowski9906 Жыл бұрын
Good job
@Doktornikita
@Doktornikita 2 жыл бұрын
THX!
@nickpravda3249
@nickpravda3249 2 жыл бұрын
Спасибо, благодаря этому видео я узнал, что дурум это шевуха, а флет бред это лаваш :) А если серьезно, годный контент, молодец!
@DecodedFrontend
@DecodedFrontend 2 жыл бұрын
Как работает zip оператор, надеюсь, тоже)
@cangua4462
@cangua4462 Жыл бұрын
Thanks sir
@DraaElMizan
@DraaElMizan Жыл бұрын
Best explanation of RXJs zip operator. Thank you so much. By the way I really enjoyed your Angular Forms course (the best). Any luck making a similar course for RXJs?
@johanneswe
@johanneswe 2 жыл бұрын
clicked because of the thumbnail
@evnews
@evnews 2 жыл бұрын
красава! внятно и понятно!
@DecodedFrontend
@DecodedFrontend 2 жыл бұрын
Спасибо 🙏🏻 рад, что понравилось
@BR4IN0FF
@BR4IN0FF 2 жыл бұрын
Лучшее объяснение которое видел. Спасибо
@DecodedFrontend
@DecodedFrontend 2 жыл бұрын
Спасибо за отзыв! Рад, что понравилось 🙂
@imarryday
@imarryday 2 жыл бұрын
@@DecodedFrontend Не думал что ты по русски говоришь, минут 20 пытался гуглить где говорят "шавуха" ))
@DecodedFrontend
@DecodedFrontend 2 жыл бұрын
@@imarryday ну это не самое распространённое название, но я встречал несколько раз точно))
@RamKumar-es3mp
@RamKumar-es3mp Жыл бұрын
Please do upload more videos on rxjs thanks
@ams1ams53
@ams1ams53 2 жыл бұрын
Hey, I enjoy your content thanks. Can you make a video about how to handle local storage? Or how to handle logged in user information, how to uae data service properly?
@ericaskari
@ericaskari 2 жыл бұрын
Thank you, now I'm hungry 🤤
@DecodedFrontend
@DecodedFrontend 2 жыл бұрын
He he 😀You are welcome!
@user-ny4yt1kf9v
@user-ny4yt1kf9v 2 жыл бұрын
Now I know how to cook durum, thx
@DecodedFrontend
@DecodedFrontend 2 жыл бұрын
Actually, It is a vital skill 😀
@IhorKevin
@IhorKevin 2 жыл бұрын
Особисто мені цей оператор більше тетріс нагадує: коли у всіх колонках заповнюються кубики - лінія готова!
@nagendradevara1
@nagendradevara1 2 жыл бұрын
Nice Thumbnail 🥙👨‍🍳
@DecodedFrontend
@DecodedFrontend 2 жыл бұрын
he he :) Thanks!
@rihardkrauz4696
@rihardkrauz4696 2 жыл бұрын
Лайк за шавуху 😂
@DecodedFrontend
@DecodedFrontend 2 жыл бұрын
Хаха))
@dekathomas
@dekathomas 2 жыл бұрын
Nice explanation! Can you show us the type of hot and cold observable, and others? Thanks!
@DecodedFrontend
@DecodedFrontend 2 жыл бұрын
Later on but I will
@codebase4947
@codebase4947 2 жыл бұрын
I would like to know more about the map operators and the new ones.
@MrNigam1992
@MrNigam1992 2 жыл бұрын
Can you explain the fork Join operator as well?
@saurabhchauhanit
@saurabhchauhanit 2 жыл бұрын
Really like the video, can you please at the end provide some real world usage example if you can, I mean not showing but just telling that these are some scenario in real world where you can use it
@DecodedFrontend
@DecodedFrontend 2 жыл бұрын
Thank you for hint, I will deffinitely think about it for the next vid. For this particular example I would answer something like this: Imagin you build an app where developers estimate some user stories. Every developer send its own score and once everyone voted you would like to show the average score and this is where you could use zip operator. So you create a separate stream for every developer (data can arrive via websocket in real-time) and then you combine with zip operator streams for every developer and once all of them voted on some concreat user story you will get an array of all answers and can get easily the average number from it. And then the process just repeats for every user story :)
@saurabhchauhanit
@saurabhchauhanit 2 жыл бұрын
@@DecodedFrontend thank you for answering
@zeeshanexplores
@zeeshanexplores 2 жыл бұрын
Great great video. Can you please put code for these videos on github etc?
@herseyvar1164
@herseyvar1164 2 жыл бұрын
Turkish Durum Doner is great
@adityagautam1217
@adityagautam1217 2 жыл бұрын
how's forkJoin different from zip??
@alextiger548
@alextiger548 Жыл бұрын
Nice stuff brohaim
@rahultej8352
@rahultej8352 2 ай бұрын
Doesnt zip return OperatorFunction? how was pipe added on it
@Afdac247
@Afdac247 2 жыл бұрын
By the way I see your import statements and how their bundle sizes next to them what's the vs code extension for that
@DecodedFrontend
@DecodedFrontend 2 жыл бұрын
There we go: marketplace.visualstudio.com/items?itemName=wix.vscode-import-cost
@028-manikandan3
@028-manikandan3 Жыл бұрын
Sir i got a error inside ngonint this.drums$.the error is observable is assignable type of observable please response sir 🙏🙏🙏
@adennis200
@adennis200 2 жыл бұрын
Hahaha regards from Berlin;)
@olivierboisse1678
@olivierboisse1678 4 ай бұрын
How many items does zip operator retains in the queue ? Imagine a scenario where one observable emits values at high frequency and a second obversable emits values at low frequency, if we zip both observables, the values of the first source must be kept in memory, this could raise a memory error after some time isn't it ?
@oren-karaso
@oren-karaso 2 ай бұрын
Hey Dmytro! In 7:26, why aren't you getting an error about a type mismatch after adding the map operator to each inner stream inside the zip? After all, now each stream will return Observable rather than the actual type of each subject
@thiemofischer2230
@thiemofischer2230 2 жыл бұрын
The cabbage guy is everywhere...
@DecodedFrontend
@DecodedFrontend 2 жыл бұрын
Yep!
@evnews
@evnews 2 жыл бұрын
I really wonder how you can achieve that wit redux!?!?!?
@DecodedFrontend
@DecodedFrontend 2 жыл бұрын
What do you mean? How to use zip operator with ngrx, or?
@evnews
@evnews 2 жыл бұрын
@@DecodedFrontend or! is there a workaround (or something similar) in redux like zip?
@codeSurvivor
@codeSurvivor 3 ай бұрын
🌯
@JohnDoe-ji1zv
@JohnDoe-ji1zv Жыл бұрын
Пожалуйста не говори валуэ 😅 вэлью будет правильнее. Спасибо за видео!
@trash2trash
@trash2trash 2 жыл бұрын
Well ,, it is just Semaphore algo:) in shorts
@balajibalamurugan8053
@balajibalamurugan8053 2 жыл бұрын
shawarma in india
@Afdac247
@Afdac247 2 жыл бұрын
Rxjs man never use subscribe (other than to call it) even agn
@DecodedFrontend
@DecodedFrontend 2 жыл бұрын
Hi Michael! I am not sure I get it, what do you mean?
@Afdac247
@Afdac247 2 жыл бұрын
@@DecodedFrontend what I mean is I rxjs tap operator mimics next,error, complete. I just do of().pipe(...). subscribe() much cleaner and scalable code
@marekkazimierczak9210
@marekkazimierczak9210 Жыл бұрын
6:25 👏👏👏👏👏In PL we call it "KEBAB"
RxJs switchMap vs mergeMap - Intro to Flattening Operators (2021)
25:44
Decoded Frontend
Рет қаралды 28 М.
Hot vs Cold Observable in RxJs (2021)
15:06
Decoded Frontend
Рет қаралды 26 М.
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 56 МЛН
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 104 МЛН
Пранк пошел не по плану…🥲
00:59
Саша Квашеная
Рет қаралды 6 МЛН
TOP 6 Mistakes in RxJS code
18:35
Decoded Frontend
Рет қаралды 16 М.
RxJs Operators - ExhaustMap vs concatMap (2021)
11:17
Decoded Frontend
Рет қаралды 10 М.
Angular Dependency Injection in Depth - Resolution modifiers (2021)
14:39
APP_INITIALIZER Token in Angular (Advanced, 2022)
23:56
Decoded Frontend
Рет қаралды 21 М.
What’s new in Angular v18
20:08
Angular
Рет қаралды 112 М.
RxJs - Stream Analogs in Real Life (2021)
12:08
Decoded Frontend
Рет қаралды 17 М.
NgTemplateOutlet in Angular - Everything You Have to Know (2022)
35:15
Decoded Frontend
Рет қаралды 48 М.
Angular Performance Optimization using Pure Pipes (2020, Advanced)
13:00
Decoded Frontend
Рет қаралды 30 М.
Xiaomi SU-7 Max 2024 - Самый быстрый мобильник
32:11
Клубный сервис
Рет қаралды 537 М.
Looks very comfortable. #leddisplay #ledscreen #ledwall #eagerled
0:19
LED Screen Factory-EagerLED
Рет қаралды 9 МЛН
$1 vs $100,000 Slow Motion Camera!
0:44
Hafu Go
Рет қаралды 28 МЛН