News for hackers. Stuff that matters.
Re:Reasons to Learn Redux as a JavaScript Developer by nennes on Wednesday January 01, 2020 @04:57PM (#21931016)
So implementing everything from scratch has more benefits than a well maintained and documented dependency?
Re:Reasons to Learn Redux as a JavaScript Developer by TrinaryWorksToo on Wednesday January 01, 2020 @05:04PM (#21931058)
If it's simple, yeah. A redux-type store does not have to be complicated. there are certainly performance optimizations to using redux versus rolling your own, but that would only happen in very large applications.
Re:Reasons to Learn Redux as a JavaScript Developer by nennes on Wednesday January 01, 2020 @06:33PM (#21931574)
I agree that you can roll your own store. You'll miss lot of free functionality and the dev tools, but maybe it's not stuff you need.

I also agree that introducing a dependency at every opportunity comes with serious drawbacks.

Every situation is unique of course. In my case: At work, I value code that is more standardised so that I get less bugs, documentation / best patterns and crucially easier on-boarding process. For a personal project, I would definitely consider rolling out my own implementation, even just for the learning it comes with.

Re:Reasons to Learn Redux as a JavaScript Developer by TrinaryWorksToo on Wednesday January 01, 2020 @07:01PM (#21931742)
Yes, I agree. There are trade-offs to be considered. Those are definitely benefits to using Redux, for sure.