RxJS made my code 5x shorter... but is it better? @JoshuaMorony
RxJS made my code 5x shorter... but is it better?  @JoshuaMorony
Uploaded November 2022 | Updated September 2026, 2 weeks ago
My modern Angular course: angularstart.com

I often get comments that the reactive code I create with RxJS is overcomplicated and would be easier without RxJS. This video compares a reactive/declarative solution built with RxJS versus the same feature built imperatively without RXJS.

Get weekly content and tips exclusive to my newsletter: https://mobirony.ck.page/4a331b9076

Learn Angular with Ionic: ionicstart.com

Reactive source code: github.com/joshuamorony/ionicstart-snapaday/blob/insta-story/src/app/slideshow/slideshow.component.ts
Imperative source code: github.com/joshuamorony/ionicstart-snapaday/blob/without-rxjs/src/app/slideshow/slideshow.component.ts

Video on pausing the stream: youtube.com/watch?v=mI8kH1_mEtw
Original video on slideshow: youtube.com/watch?v=tWy8zaWvkvk&t=0s

Video on using the expand operator: youtube.com/watch?v=aKsPMTP6-sY

0:00 Introduction
1:00 Reactive Approach
2:17 Imperative Approach
4:11 Is Reactive Better?
6:11 Bonus example

#ionic #angular

- More tutorials: eliteionic.com
- Follow me on Twitter: twitter.com/joshuamorony
RxJS made my code 5x shorter... but is it better?Should this be the future of Angular applications?Making route params easier with reactive codingngTemplateOutlet is WAY more useful than I realisedA workflow for complex open source contributionsRefactoring my ugliest code with signal view queriesThis new Angular primitive might actually be a viable alternative to RxJSA visual guide to switchMap and higher order observablesWhy does building an Angular app with INJECTION TOKENS feel so good?!The most compelling reason to learn Angular in 2023The easy way to GIT like the prosThe mindset you need for a DECLARATIVE code refactor
Joshua Morony |

RxJS made my code 5x shorter... but is it better?

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER