5 ms·
As someone who has to deal with Spring stack traces and React/Redux stack traces on a daily basis ... I'll take React/Redux 100% of the time. There is a lot to
by reggieband 8y ago
As someone who has to deal with Spring stack traces and React/Redux stack traces on a daily basis ... I'll take React/Redux 100% of the time.
There is a lot to complain about both but I think the Java boilerplate mess is at least one order of magnitude worse.
Just one man's opinion, anecdotal evidence, YMMV, etc.
- acemarke 8y agoI'm a Redux maintainer. FWIW, I'm always open to suggestions on how we can make using Redux easier and better for everyone (example prior discussion: https://github.com/reactjs/redux/issues/2295 https://github.com/reactjs/redux/issues/2295 ). We're currently working on a "starter kit" package that's intended to address some of the most common concerns about using Redux, and hope to make it an official Redux-branded package in the near future. I'd appreciate any feedback or ideas you have for improving it: https://github.com/markerikson/redux-starter-kit https://github.com/markerikson/redux-starter-kit Also, since you mention stack traces: if anyone out there has a bit of free time on their hands, I'd _love_ to see the Redux DevTools core and extension updated to show a stack trace for where each action was dispatched: https://github.com/zalmoxisus/redux-devtools-extension/issues/429 https://github.com/zalmoxisus/redux-devtools-extension/issue...
- semireg 8y agoI’m an experienced native app dev (swift/kotlin). I learned react/redux in a few months. For me, stressing immutability via Immutable.js/flow would go a long way. The combination is terrific but I had to piece together my own best practice.
- acemarke 8y agoI personally generally discourage use of Immutable.js, for several reasons: https://www.reddit.com/r/javascript/comments/4rcqpx/dan_abramov_redux_is_not_an_architecture_or/d51g4k4?context=3 https://www.reddit.com/r/javascript/comments/4rcqpx/dan_abra... . However, the "starter kit" I linked does use the Immer library internally, which uses ES6 Proxies to let you write "mutative" code, but then applies the updates immutably. The goal here is to simplify your immutable update logic. (My only concern with using it is that there's no obvious indication in your own code that a given reducer function is updating immutably, because the code as-is really _is_ mutative, and that might confuse people down the road. Still, hopefully it will be beneficial in the long run.)
- jonny_eh 8y agoI made an alternative to Redux that requires a lot less boilerplate. Could you take a look? I'd love to know what a Redux contributor thinks. https://github.com/JonAbrams/SpaceAce https://github.com/JonAbrams/SpaceAce
- dotancohen 8y agoTake a look at what, specifically? If you want him to invest his time helping your competing tool, then respect that time and direct him to specific places where his input might be appreciated.
- acemarke 8y agoSo on the off chance that anyone happens to look at this thread in the future: last night I decided to try implementing that stack trace display idea, and I got it working! Still needs better formatting, but the important thing is the data is there and viewable.