Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Marcus Nielsen
@marcusnielsen
it’s sad that RxJS has such a large API, and not much attention is put on the practical patterns. You only need a smidge of the total API for 90% of the use cases.
rsmalvinder
@rsmalvinder
Okay
So I shall go for RxJS first rather than following Cycle.js ??
Steve Lee
@SteveALee
I'm going to do a lightening talk touching on supporting newbies at #cycleconf. I'm definitely a newbie and think we could make it easier
Marcus Nielsen
@marcusnielsen
@SteveALee can you make it available online? :-)
Steve Lee
@SteveALee
Trouble with RxJS is has a lot of operators and in the context of a webapp in cycle you only need a few of them! the cycle examples help you see which
Marcus Nielsen
@marcusnielsen
@rsmalvinder I started with Cycle.js and Redux to get what problems they solved, and then learned the RxJS patterns from some samples.
Agree with above. That’s why I’m still interested in Cycle.js, and not just RxJS with React.
rsmalvinder
@rsmalvinder
@marcusnielsen
Can you point me to the same. It might help me achieve more using Rx and Cycle
Steve Lee
@SteveALee
@marcusnielsen sure - and I plan a blog post. More questions than answers though. : )
James Tindal
@james-tindal
Trying to grok RxJS made me feel like I didn’t understand streams. I read the Flyd github page for 20 minutes and I can use it.
Marcus Nielsen
@marcusnielsen
that’s the best first step. The right questions are more important to me.
Steve Lee
@SteveALee
so the RxJS 5 overview is goo - http://reactivex.io/rxjs/manual/overview.html
Marcus Nielsen
@marcusnielsen
@rsmalvinder I will give it a look. It was almost a year ago though.
Steve Lee
@SteveALee
Also @staltz did a great intro
Marcus Nielsen
@marcusnielsen
A free one?
Marcus Nielsen
@marcusnielsen

I missing the basic checklist of what I need to learn.
For me, it was:

  • .Subject()
  • .startWith()
  • .map()
  • .subscribe()
  • .scan() (With the redux-style state pattern.)
  • .combineLatest() (Part of above.)
  • .merge()

Then I needed #withLatestFrom() to combine an input-box with a chat message box.
(Edit: removed hashtags.)

Oh, sorry about the .md headers. I didn’t think about that.
Churchill Lee
@FeliciousX
how do we debug hot / cold observables?

what's the use of doing these?
https://github.com/cyclejs/examples/blob/master/many%2Fsrc%2FList.js#L35-L38

I tried not doing that and it will still work. are there pros and cons that is not directly obvious?

Code snippet

    sinks.DOM = sinks.DOM.replay(null, 1);
    sinks.DOM.connect();
    sinks.destroy$ = sinks.destroy$.publish();
    sinks.destroy$.connect();
Marcus Nielsen
@marcusnielsen

@FeliciousX looks like something I’m interested in as well.

I’m not using cyclejs (yet), but when it comes to debugging rxjs, I just subscribe to a stream and then fire off actions (intents) that give me some observable data.

Sample: https://github.com/marcusnielsen/rxjs-server/blob/master/web-application/app/components/user/index.test.js

And I should really do the .publish() .connect()-stuff too, so I get hot observables.
Churchill Lee
@FeliciousX
yeah, I know enough of Rx to do the easy stuff, once I need to deal with share, publish, replay etc, I get overwhelmed. I wish there's an easier way to learn
Marcus Nielsen
@marcusnielsen
Oh, how I can relate! I’ve built a whole server/client websocket solution around the MVI/cycle.js way of thinking, but without cycle.js. I haven’t even bothered yet with hot observab bles. That means that my server would keep lots of cold event streams just building up with data, if I understand it correctly.
Once I learn a bit more, I will try to blog about it. Right now, I just don’t know enough of what I don’t yet know to even blog about RxJS.
André Staltz
@staltz
CycleConf officially starting in a few minutes! There are about 60 people in the house, if you want to follow the news, follow hashtag #cycleconf in twitter
Marcus Nielsen
@marcusnielsen
Yay!
Brandon Smith
@BrandonSmith
Congrats. This is awesome.
Fred Daoud
@foxdonut
cyclejs will have its own dedicated stream library, xstream, is that correct?
Hadrien de Cuzey
@chadrien
André said he'd release it in the evening
Andrew Van Slaars
@avanslaars
it’ll be interesting to see how it compares to RxJS and Most
Denis Stoyanov
@xgrommx
Andrew Van Slaars
@avanslaars
@xgrommx Nice… thanks! Hopefully they add an entry for xstream once it is released
Denis Stoyanov
@xgrommx
@avanslaars what is xstream?
Marius Lundgård
@mariuslundgard
@xgrommx: It's a new stream library designed for Cycle, announced at CycleConf
Andrew Van Slaars
@avanslaars
It’s the new stream lib for Cycle apparently… just heard about it myself… see above my earlier message for context
Denis Stoyanov
@xgrommx
@mariuslundgard any info?
Marius Lundgård
@mariuslundgard
Not much yet, though it'll be released later tonight (can't wait)
André Staltz
@staltz
Scott Vachalek
@svachalek
@SteveALee @staltz I hadn't seen that reactive intro gist, it's fantastic. I read all those horrible introductions it mentions instead. :-|
Hadrien de Cuzey
@chadrien
André Staltz
@staltz
Vincent Orr
@Cmdv
:+1:
Mark Moissette
@kaosat-dev
:clap:
Vincent Orr
@Cmdv
tweeted but if anyone at the conf is keen to have a remote person help I'd be keen?
Scott Vachalek
@svachalek
shamefullySendNext lol
Steve Lee
@SteveALee
Folks, do follow #cycleconf on twitter for more info
Dmitrii 'Mamut' Dimandt
@dmitriid
xstream is love
esp. after once again struggling with the cold observables in HTTP :)