by gedy · 9y ago · 0 comments
> it's all of a few hundred lines of code
I hear this a lot, but it reminds me of folks praising Lisp for its simplicity - it may be 'simple' but many people have a hard time understanding it.
Maybe it's not for every app, but goes into this here: https://medium.com/@matheusml/great-question-bryan-waddingto...
The problem I have is with an author tying their library to Redux, giving those same newer people the impression that it's a simpler, but just as powerful version of the same thing. If they had been upfront about the tradeoffs made here, I would be happy.
That said, I'm always looking for ways we can make it easier to get started with Redux, improve the learning process, and make the ecosystem better. I filed an issue earlier this year to get community feedback and discuss how we can simplify things [3]. Please feel free to add suggestions to that issue. I'm also always open to ways we can improve the docs as well.
[0] https://medium.freecodecamp.org/whats-so-great-about-redux-a...
[1] https://storify.com/acemarke/redux-pros-cons-and-limitations
[2] https://twitter.com/modernserf/status/886426115874717697
'Extremely minimal' is hyperbole and 'easy-to-use' is subjective. I disagree with this as an absolute statement. I think there's a trade off, and it potentially harms onboarding for some teams, see my sibling-ish comment.
As soon as you dip your foot into the community you're also going to hear about 'selectors' (reselect) and popular middlewares like redux-thunk and redux-sagas for async, the latter of which brings a lot of concepts of its own, including generators, which you are likely using nowhere else in your codebase.
You probably also need to understand what react-redux is doing with shouldComponentUpdate.
All this should not be hand-waved away by quoting the LOC of redux.