Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anatomy of an Observable Rx.JS #8

Open
haffani opened this issue Apr 8, 2020 · 3 comments
Open

Anatomy of an Observable Rx.JS #8

haffani opened this issue Apr 8, 2020 · 3 comments

Comments

@haffani
Copy link

haffani commented Apr 8, 2020

Suggestions:

  • Observable described as nothing more than an object with forEach function,
    this function will accept an observer which is in his role nothing more than an object with 3 function onNext, onError Completed.

we can make an implementation.

  • We can discuss how Iterator and Observer patterns are symmetrical,
    -> In Ob. pattern, the producer iterate you by calling onNext, onError or on Completed.
    -> In Iter. pattern, it's the consumer who iterate you.

How Observables helps on the standardization of a lot of push APIs such as DOM events, service workers, node streams, jquery events...

Questions:

  • How to catch/detect memory leaks and async problems caused by the unhooked subscriptions in my Angular application?

  • I'm unhooking my subscriptions in angular "ngDestroy" life cycle method, it works but what are the best practices?

  • When exactly BehaviorSubject is useful?

@chihab
Copy link
Member

chihab commented Apr 13, 2020

Hi @liffanu, thank you for your interest.

Are these a meetup proposal or questions for us or Ben Lesh?

@haffani
Copy link
Author

haffani commented Apr 13, 2020

Hello @chihab,
Yes, i guess.. maybe we can talk about those topics about reactive programming.

@chihab
Copy link
Member

chihab commented Apr 13, 2020

@liffanu hopefully Ben will answer some of your questions. Otherwise we can plan an RxJS remote workshop. Meanwhile you can take a look at an implementation of RxJS principles here https://github.com/chihab/rabatjs-rxjs (code is also on codesandbox) https://codesandbox.io/s/github/chihab/rabatjs-rxjs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants