These are chat archives for escherpad/luna

12th
Dec 2015
Dominic E.
@d3lm
Dec 12 2015 20:38
Hey
Ge Yang
@episodeyang
Dec 12 2015 20:39
Hey!
This message was deleted
Dominic E.
@d3lm
Dec 12 2015 20:43
Good job with luna!
Ge Yang
@episodeyang
Dec 12 2015 20:53
Thanks!
so I haven't really used it yet
I think I'm going to grab lunch and then come back to start actually writing my app
Do you think you can help me with this repo in the future?
We might be able to contribute a nice piece of work:)
Dominic E.
@d3lm
Dec 12 2015 20:56
Sure why not : )
I am not sure about the action creators aka async reducers
Ge Yang
@episodeyang
Dec 12 2015 20:59
yeah? what are you not sure about? and also, what is action creator?
Dominic E.
@d3lm
Dec 12 2015 20:59
fxck, or maybe rob supposed to use classes as action creators
Aleš
@fxck
Dec 12 2015 21:00
you use classes because you can use angular DI to inject stuff into them.. something you can't do with functions(afaik)
Dominic E.
@d3lm
Dec 12 2015 21:00
exactly!
Ge Yang
@episodeyang
Dec 12 2015 21:00
I see!
I kind of want this library to not be only usable with angular
but I'm pretty flexible.
we could add a helper class of some sort what do you think?
Dominic E.
@d3lm
Dec 12 2015 21:04
action creator is a reducer which does not return an object but rather a function. If you are using redux you need a middleware which gets plugged into redux. The middleware actually passes along the dispatcher
Yeah I thought about that, if you aint have DI your approach is good
Aleš
@fxck
Dec 12 2015 21:04
...none of which you need when you use rxjs, because rxjs is the middleware.. anyway, I'll look at the repo tomorrow : )
Ge Yang
@episodeyang
Dec 12 2015 21:05
cool I think I understand both of your points.
Aleš
@fxck
Dec 12 2015 21:05

I think I'm going to grab lunch and then come back to start actually writing my app

let us know how that went

Ge Yang
@episodeyang
Dec 12 2015 21:05
and @d3lm fxck is correct, you don’t need those functions if you use rxjs.
another lunch at McDonalds...
Dominic E.
@d3lm
Dec 12 2015 21:06
Ye I know
Was just saying what action creators are in the context of redux
Ge Yang
@episodeyang
Dec 12 2015 21:07
I see I see! yeah thanks for the explaination :) I didn’t even know what action creator was!
Dominic E.
@d3lm
Dec 12 2015 21:12
:D np ^^
How long have you been developing? And how long did you study rx? :D
Ge Yang
@episodeyang
Dec 12 2015 21:12
I have been developing for two years maybe?
left a startup I cofounded in China and decided to go solo
rx about a week.
Dominic E.
@d3lm
Dec 12 2015 21:13
Tough decision
But great experience I guess
Ge Yang
@episodeyang
Dec 12 2015 21:13
yeah, I use to make hardwares.
Dominic E.
@d3lm
Dec 12 2015 21:13
Ah cool
Freelancing in coding or what?
Ge Yang
@episodeyang
Dec 12 2015 21:32
eventually I want to start up my own company, but I don’t have any solid idea now.
Dominic E.
@d3lm
Dec 12 2015 21:36
Ok
Btw: why do you store dispatcher$seperately ? You already have state$ which is a BehaviourSubject. In dispatch() you could simply call .next on state$
Am I missing something?
I mean you have two BehaviorSubjects
Ge Yang
@episodeyang
Dec 12 2015 23:22
let me have a look!
dispatcher$ is a action type
and state$ is a state type I think