Echo JS 0.11.0

<~>
tracker1 958 days ago. link parent 2 points
Not the Author... that said, one advantage of using a reducer to respond to events is that you can process your logic as a pure function which is easier to test both state and changes.  It also is better in terms of separating state management from render.

If course it's at the cost of a slightly more complex implementation and requires that separation of responsibilities in a clean way, which isn't always the case in practice.

It's part of why I've been such a fan of straight Redux for state management.  It's easier to compare/contrast with a state checker system such as the original Angular where projects and implementations have tended to have many bugs related to state management in practice.

Much like tdd, it doesn't make the code cleaner or better, but does make it more painful to not do it cleanly.

Replies

kali 958 days ago. link 2 points
Yes, I know.

But the above was not meant as a question, but as criticism of the article. While you may care enough to give an answer *here*, none of the readers of the original article will read it.