If you have any interest in RxJS, this article is for you. If you have no idea what RxJS is, I advise you not to worry about it and check out rubic...
For further actions, you may consider blocking this person and/or reporting abuse
Have you tried reading RxJSβ source code? I bet youβll learn a lot more than youβd do with diagrams. Even more, it wonβt seem that difficult!
is there a particular spot in RxJS' source code you found to be helpful for learning RxJS?
Iβd say everything. Itβs all about linked lists and OOP concepts. It may seem a lot, but itβs the same pattern used almost across the entire library.
Okay, I'll do that, thanks.
Awesome! Iβm sure it will be a fun journey.
Iβd recommend creating an rxjs project in StackBlitz and try to debug the sources right there. With stackblitz you can debug the TS files.
Iβd be glad to help if youβll have questions! Good luck
I have a couple questions, Andrei. How did you get into RxJS? How has it helped you in your work?
Hey @richard Tong,
thanks for this interesting perspective.
I will look into rubico and, if i have time / find something interesting, give you some feedback on this.
I found your post while searching for a state management solution for deno.
I also do have some custom rxjs operators published on npm, so I think, I can nicely compare the two experiences.
Rubico sounds interesting for me, since the idea of 'using the platform' is also my main paradigm right now.
But I also wonder whether rubico will be a real complete (or neraly complete, maybe without edge cases) replacement for the vast functionalities build into rxjs.
Let's see! Anyway, thanks for the post!
Hey Benjamin, thanks for the comment. I think you're right - rubico has a long way to go. Actually I was just on my way to implementing some stuff I have on its roadmap, since today my day is light. Cheers
BehaviorSubjectin RxJS)multicastin RxJS)map.poolare bad for treeshaking.composecalledpipe:vHey @richytong I like the design of your API, I do find it more intuitive, but I also like RxJS's design as well. You keep mentioning the "Why" and I suspect it's probably due to a very famous TED talk. If you absolutely need the why, just have in mind that RxJS is an implementation of reactivex in JS:
reactivex.io/intro.html
You can find the "why" of reactivex in the website above. For the why of RxJS, just add "in Javascript" at the very end.
On the topic of
map,concatMap,exhaustMap,mergeMapandswitchMapall have their place and are useful in their own way. I'm not sure about how I would use them in the backend but I constantly use them on the frontend in different scenarios. EspeciallyswitchMap.Very interesting work. Thank you for your effort and sharing.
Curious how to create event streams in rubico as RxJS
fromEvent()does. Tried to find it from the documentation and tutorials but couldn't. Sample code snippets or mention in documentation will be helpful as it was the most exciting feature to me. If event streams could be handled as in RxJS, then rubico will be the winning FRP framework for my next big project.A starting point perhaps :
DEMO