News for hackers. Stuff that matters.

trnmura

Re:How to Improve a Legacy Codebase on Tuesday May 30, 2017 @11:07AM (#14445869)
Sadly, I think this is more of a rule than an exception...
Re:Show HN: Build your first real world React.js application on Wednesday September 07, 2016 @02:46PM (#12445946)
I find this string pattern terrible as well. As the application grows, there are lots of reducers with lots of strings, and it gets really confusing. It feels like this is inherited from Flux (https://facebook.github.io/flux/), Facebook's initial solution to handling state.

On the other hand, you have all the state logic on reducers... If actions were to dispatch state-modifying functions, it wouldn't take long for the code to become really confusing.