RxJS made my code 5x shorter... but is it better?
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: https://ionicstart.com
Reactive source code: https://github.com/joshuamorony/ionicstart-snapaday/blob/insta-story/src/app/slideshow/slideshow.component.ts
Imperative source code: https://github.com/joshuamorony/ionicstart-snapaday/blob/without-rxjs/src/app/slideshow/slideshow.component.ts
Video on pausing the stream: https://www.youtube.com/watch?v=mI8kH1_mEtw
Original video on slideshow: https://www.youtube.com/watch?v=tWy8zaWvkvk&t=0s
Video on using the expand operator: https://www.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: https://eliteionic.com
- Follow me on Twitter: https://twitter.com/joshuamorony