> The concepts are clear to those with a Computer Science (CS) educational background, but since the large mass web developers come mostly outside of this arena it is a hindrance. Seriously? A CS degree is not necessary in order to understand functional programming, and it's not like reducer functions are all that complicated.
The vast majority of developers absolutely cannot handle reducers. Give them a pattern to follow and they'll follow, though.
RIP Redux: Dan Abramovich Announces Future-Fetcher
41–49 of 49 posts
Re: RIP Redux: Dan Abramovich Announces Future-Fetcher
#42Future fetcher is not a replacement for Redux. It's a feature they will be adding to React later on in 2018 to allow devs to adaptively render elements based on network performance. You can signal to React to delay rendering specific components until an async operation is complete. Redux is a state management layer. Future fetching does nothing to solve app-level state management. Gross misrepresentation of Dan's tal…
https://dev-blog.apollodata.com/the-future-of-state-manageme... What about apollo-link-state? Not a replacement either per se, but seems like its one step closer to isomorphic (client & server side) state. On one hand it normalizes your data & avoids thousands of lines of boilerplate, on the other hand you lose [some] control of the underlying data structures which is where you'd still need something like redux.
Re: RIP Redux: Dan Abramovich Announces Future-Fetcher
#43> The concepts are clear to those with a Computer Science (CS) educational background, but since the large mass web developers come mostly outside of this arena it is a hindrance. Seriously? A CS degree is not necessary in order to understand functional programming, and it's not like reducer functions are all that complicated.
The vast majority of developers absolutely cannot handle reducers. Give them a pattern to follow and they'll follow, though.
Re: RIP Redux: Dan Abramovich Announces Future-Fetcher
#44The async rendering rendering stuff Dan is showing in his talk ( https://www.youtube.com/watch?v=_c7ajDXb4qw ) looks great, but I disagree that this is a redux killer. redux is useful for a lot more than just async fetching & loading. I think these new features will just reduce the scope of what redux is used heavily for.
The video has been blocked. Anyone know of a mirror?
Re: RIP Redux: Dan Abramovich Announces Future-Fetcher
#45Watching the video on Future Fetcher it feels like we're just inventing the the web all over again. Half the time is spent on novel new ways of adding in a loading spinner. Perhaps it's just his demo, but I can sense Roy Fielding shedding a tear.
Re: RIP Redux: Dan Abramovich Announces Future-Fetcher
#46I use redux a lot and love the way you can reason about the state of the app from a single object - which opens up all sorts of useful things like time-travel etc. However - after having plugged in a lot of reducers - the boilerplate code required to do simple stuff becomes a real bore. I've since compromised by using a simple `key-value store` reducer that I can write new values to without needing a new reducer with…
I created a class compatible with Redux time travel and debugging tools that works like this (in typescript): interface FooState { myNumber: number; myArray: number[] } class Foo extends DataModelImpl implements IDataModel {...} Then you use it like so: const foo:IDataModel = new Foo() foo.updateState(state => state.myNumber = 10) Anything that wants to be notified when myNumber changes: const callback = (num:number)…
Re: RIP Redux: Dan Abramovich Announces Future-Fetcher
#47Re: RIP Redux: Dan Abramovich Announces Future-Fetcher
#48Earlier quoted context omitted.
The spec constantly evolves. At some point, there will be web components "v2" and coding "regular" web components will be outdated. As the spec evolves, browsers will evolve at different paces & implement things differently. Such is the reality of cross platform development. The only constant is change itself. To deal with it we use tools like polyfills, libs, and frameworks.
That matters very little because our components are wrapped in ASP.NET, Spring, JEE components. For the user of use components the difference will be quite thin, if at all.
Re: RIP Redux: Dan Abramovich Announces Future-Fetcher
#49Earlier quoted context omitted.
I created a class compatible with Redux time travel and debugging tools that works like this (in typescript): interface FooState { myNumber: number; myArray: number[] } class Foo extends DataModelImpl implements IDataModel {...} Then you use it like so: const foo:IDataModel = new Foo() foo.updateState(state => state.myNumber = 10) Anything that wants to be notified when myNumber changes: const callback = (num:number)…
.watch? Reminds me of angularjs :)