fisherwebdev
Re:Marty.js – A JavaScript library for state management in React appli...
on Wednesday January 21, 2015 @02:43PM (#8925159)
I find that small apps tend to turn into big apps over time, and Flux lets us build with the confidence that, as new features are developed, our apps won't have to be deeply rewritten. New, unexpected features tend to fall into place with Flux, with a minimum of effort. I have seen this time and time again in working with Flux.
Re:Facebook Flux – Application Architecture for Building User Interfaces
on Monday July 28, 2014 @08:14PM (#8100032)
The Dispatcher is not an event queue system, but rather a registry of callbacks. This is a significant difference. The callbacks may be invoked in a specific order, synchronously, so that dependencies between Stores are managed effectively. Stores declare their own dependencies -- the Dispatcher knows nothing of the internals of Stores -- through the use of the dispatcher's waitFor() method.
Yes, you don't absolutely need the ActionCreator helper methods. You could call AppDispatcher.handleViewAction() or even AppDispatcher.dispatch() directly in the View. But keeping these things separated out keeps the code nicely organized and keeps application logic out of the View. Additionally, I find it helps to maintain a mental model where the only way into the data flow is through the creation of an action, codified in the library of ActionCreators.
Re:Exercise Does Not Make You Less Depressed
on Wednesday August 29, 2012 @01:36AM (#4447245)
yes. it seems that this detail has been missed by many.