News for hackers. Stuff that matters.
Re:React JS Best Practices by cnp on Saturday May 09, 2015 @08:36AM (#9516195)
Oh holy shit I just moved my app off of reflux and on to flummox and wow! Much better
Re:React JS Best Practices by arms on Saturday May 09, 2015 @01:03PM (#9516926)
I'm also curious to hear why you like Flummox better than Reflux. I'm using Reflux now, and haven't hit any pain points, which I can't say the same about some of the other Flux implementations.
Re:React JS Best Practices by cnp on Sunday May 10, 2015 @04:10PM (#9521139)
When I started investigating isomporphic strategies with Reflux I stumbled upon this thread (https://github.com/spoike/refluxjs/issues/144) which made me realize that if I didn't switch quick I would have some terrible technical debt on my hands in the coming months. I started looking for alternatives and found Flummox, which is lightweight, isomorphic, and written for the future via ES6-7 features like async await and classes. (Once you start using ES6 classes with ES7 classProperties turned on via Babel -> stage 0 you'll never want to go back to the old way of writing things.)
Re:React JS Best Practices by sairion on Saturday May 09, 2015 @09:50AM (#9516366)
Well pretty much Flummox is ES6-ified Reflux, no big differences in functionality...
Re:React JS Best Practices by weeksie on Saturday May 09, 2015 @09:30AM (#9516318)
What would you say the major differences are with Flummox? It looks pretty straightforward but Reflux seems pretty lightweight as well. Just trying to figure out if it's worthwhile to switch an early stage project over.
Re:React JS Best Practices by cnp on Sunday May 10, 2015 @04:06PM (#9521127)
I would say that Flummox is a slightly more verbose Reflux, written in a way that is somewhat more future proof and adaptable to change.
Re:React JS Best Practices by krat0sprakhar on Saturday May 09, 2015 @09:48AM (#9516364)
For the past one month, I've been working on an app in Reflux. If the benefits are significant, I'd surely look at switching to Flummox. Care to point out how the switch has been useful to you?

Thanks!

Re:React JS Best Practices by cnp on Sunday May 10, 2015 @04:05PM (#9521126)
I like very much that the API is more "standard" (reflux, imo, has some strange patterns) -- also, due to the ability to instantiate every aspect of the pipeline, you get isomorphism for free, and testing is much, much simpler.

Also, can't hurt that the library was designed and implemented in ES6, which is what I've begun moving our architecture towards!