News for hackers. Stuff that matters.
Re:Angular 2 Final Released by danmaz74 on Thursday September 15, 2016 @03:57AM (#12504214)
Regarding the "Flux" frameworks, that's not a problem anymore - basically Redux (which improves on some of Flux's faults) has won. Its developer was hired by Facebook, so I guess it's kind of officially sanctioned now.
Re:Angular 2 Final Released by subsection1h on Thursday September 15, 2016 @04:28AM (#12504344)
Has everyone who switched from Redux to MobX been informed that Redux won and they should switch back?
Re:Angular 2 Final Released by k__ on Thursday September 15, 2016 @04:56AM (#12504446)
I didn't understand this. Isn't MobX the "classical" way of databinding everybody frowned upon for years? And now that React finally eased that pain with Flux and then Redux, they bring it back?
Re:Angular 2 Final Released by boubiyeah on Thursday September 15, 2016 @05:14AM (#12504513)
I don't think that many people switched to MobX to be honest. It's very similar to knockout observable and while it works, I don't think I would use that approach again. I suspect people like the familiar OO syntax of MobX. I can't think of advantages it has over plain old streams (most.js, flyd.js)
Re:Angular 2 Final Released by Kiro on Thursday September 15, 2016 @05:37AM (#12504598)
Who has switched? Do you have any example?
Re:Angular 2 Final Released by simonrobb on Thursday September 15, 2016 @10:47AM (#12506589)
I've just finished my first major redux project and found it incredibly slow to develop with. Write an action type constant/action creator/dispatch/reducer/mapStateToProps just to show an element in response to a mouse click? I found myself cutting corners on the UI because the amount of code I'd have to write makes it seem like a huge task.

I'll be evaluating mobx for my next project, definitely, along with Relay. If I can maintain the same view-as-a-function-of-state approach of redux while writing less code, I'm sold.

Re:Angular 2 Final Released by Kiro on Friday September 16, 2016 @04:11AM (#12512587)
That's interesting. I've only used redux for one project and you may be right. It is tedious to all those things for every little action.
Re:Angular 2 Final Released by danmaz74 on Thursday September 15, 2016 @08:08AM (#12505378)
I'll admit that I hadn't heard so much about MobX yet. Will re-evaluate when I have time.