In recent years I’ve observed a strong trend towards using reducers in software architectures. While this is not a new pattern, its recent prominen...
For further actions, you may consider blocking this person and/or reporting abuse
Just want to mention that this comes from the concept of a fold/reduce in functional programming. For example, in F#, you could process a stream of messages using
fold
:Love it. I think you can put
fs
after the triple apostrophes to get F# syntax highlighting there.And yes, I'm doing a ton of F# programming recently, which inspired the post on reducers at large.
Thanks. I actually had to use “fsharp” to trigger syntax highlighting.
Nice article! I’ve used both redux and ngrx extensively and must say that while I appreciate the effort of the ngrx team it feels so unintuitive compared to the pure redux implementation.
A colleague once told me to only use redux for state that needs to be accessible elsewhere or fetches data and keep all the rest as local state. While not necessary I really like how this simplifies debugging and keeps the reducers from growing out of control.
That's a good tip, though it does get rid of some of the centralized aspects.
There are some lighter weight Angular state management libraries out there that may be more of a happy medium as well, but I've not looked into them yet.