DEV Community

Discussion on: RxJS code on a deeper level.

Collapse
 
anduser96 profile image
Andrei Gatej

Thanks for sharing!

I also explored its source code a couple of months ago and I was fascinated. I supplemented my discoveries with giving in-depth answers on stack overflow, which is something I’d definitely recommend!
Here’s a question I learnt a lot from: the difference between auditTime and sampleTime.

Then, when the last in the line is subscribed to, it triggers a chain of calls to the operator's 'call' method

It felt great when I discovered this.

It's fascinating to see how RxJS has taken the basic (if you can call Monads basic)

I’ve only heard and used the “monad” term in the context of mathematics during my classes. If I were to summarize RxJS in a few words, I’d say: linked lists and OOP concepts.

One thing that I find interesting is that after getting a better understanding of how the internals work, I came to the conclusion that any sort of illustration/diagram is rather confusing than helpful, IMO.

I would like to make another post on this subject. Something of a deep, deep, deep dive into the code.

Looking forward to it! I’m also available if you’d like to share some ideas or opinions.

Best of luck!

Collapse
 
djjensen profile image
David Jensen

Thanks for the response!

Monads can be implemented in different ways. In this case it's OOP and linked lists. They really are useful but they've got a mystery about them. Perhaps their usefulness is not great enough to compensate for their strangeness. 😊

Your explanation of the difference between auditTime and sampleTime was great! People like you make Stack Overflow a great site!