RXJS Operators Explained with Examples: switchMap, map + More

preview_player
Показать описание
This is the second part of an RxJS tutorial for beginners who want to understand RxJS operators like switchMap, map, concatMap mergeMap and more.

Even while reading the RxJS documentation, the differences between RxJS operators like map and switchMap didn’t come easily. If you feel the same way I once felt while reading the definitions, it’s all just a little too abstract to pick up in one go.

This video offers a simple metaphor for thinking about RxJS, Observables and Operators. It also addresses common questions about frequently used RxJS operators like, “what is the difference between switchMap and map?”

To watch PART ONE, which describes Observables, check out:
How are Observables Different from Promises? | Beginner RXJS Lessons

REAL LIFE RXJS EXAMPLES from my own work:

This is part of a series focused on developing apps with Angular. To learn whether Angular is a framework worth learning, watch this video:
Angular is BETTER than React and Vue under 3 CONDITIONS

OFFICIAL DOCUMENTATION

My name is Ben and I am a software developer. I have iOS apps and a few web apps. (Every other web app is comparatively small and was developed using vanilla JavaScript.) If you'd like to see what I'm about or what I've done, check out the links below:

THE PERFECT BOARDGAME - A site for matching tabletop games with your unique preferences

SOLUTIONS FOR X - My first published iOS apps

NEVER BEN BETTER - My Blog

MY PATREON SITE:

MY GEAR
Sony ZV 1

Fifine Condenser Recording Microphone (which was unplugged about halfway through this video: sorry!)
Рекомендации по теме
Комментарии
Автор

Originally, I was planning on going over examples in code, but I decided against it to keep the video shorter and keep the focus on vocabulary. I'm wondering whether making another video - one focused on code - would be helpful to anyone?

neverbenbetter
Автор

one of the best explanation of rxjs since I started to learn programming, thank you

pouriadaki
Автор

Sir, thank you for breaking this down. You made my morning.

landon.wilkins
Автор

Definitely the best explanation I've ever seen! Absolutely amazing channel and keep up more Angular videos please <3

giorgimerabishvili
Автор

The first man I found to be able to clarify these related terminologies, liked and subscribled!

liang
Автор

The best metaphor could be used in explaining different RxJs operators in such short amount of time!
Well done!

HamzehExplains
Автор

This is gold.. I was having hard time grasping what exactly some of these concepts are and with this.. all solved like magic. Thanks so much 🙏

hyukshin
Автор

The best analogy I have ever seen for the RxJs operators.

ShanDev-beqq
Автор

This will make an excellent interview question. Thanks

rembautimes
Автор

I was just randomly looking to learn about Subject however I just watched the first part and was literally hooked.
Really the best explanation I ever saw about the whole rxjs Observable

ameyakale
Автор

I just stumbled on your videos yesterday and I have to say I really appreciate them! I've been a junior dev for about a year working in Angular mostly, and rxjs has always tripped me up. I usually just used the functions I notice that similar components use (mostly switchMap) without really getting what that actually MEANT, other than it took the data in so I could use it on the page. Sitting here having coffee before a meeting and listening to this has made a ton of difference and I plan on making visits to your channel a regular thing because you explain things REALLY well (the weather explanation is surprisingly perfect imo. There are so many moving pieces, like the meteorologist or the instruments they use, yet they all are relevant both in the example and in what they represent in the code). Thank you so much for this video and the other rxjs videos (and I'm sure I'll have more to thank you for in the future)

thegoodgolly
Автор

Nice way to explain the complex things. Thank you so much..

dilipshelake
Автор

Ohhhh mannn... I've been racking my brain at work for days trying to get a handle of observables and RxJS to use for HTTP requests. This series is truly GOLD! THANK YOU SO MUCH, definitely a follow from me :)

nproductions
Автор

This video is 2 yrs old and I’m seeing it now!!!😔. I hope you doing well bro.

Observables is the most difficult thing for me in Angular, but those operators are so useful.

MG-wxyx
Автор

I've been looking for something like this for months! First-time developer in my first job, and I've been struggling to understand observables from documentation and tutorial videos. This is what I needed - thank you!

davidwildman
Автор

Best example of RXJS I have come across. Hats off

semperfiArs
Автор

explaining with examples hits straight..loved it

saianusha
Автор

best tutorial for beginners! you are amazing

RonaldJayBuayan
Автор

Bravo man! Thanks for this great explanation/examples. I will still have to brew a pot of coffee and listen to this 5 times but you definitely make far more sense than the documentation to me!

parishare
Автор

You are definitely good at the things explanation👏

yarmab