Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
acemarke
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
70 ms
·
691.
▲
by
acemarke
7y ago
That's because: - I have no control over the millions of other tutorials that have been written. I can only control my own blog, and the actual Redux docs. - The question of "When does it make sense to use Redux?" has been a
692.
▲
by
acemarke
7y ago
Note that with Redux Toolkit, that store setup is now a single line: const store = configureStore({reducer: rootReducer}) https://redux-toolkit.js.org/usage/usage-guide#simplifying-s...
693.
▲
by
acemarke
7y ago
I think it's important to distinguish between the "inherent" complexity" and "incidental" complexity in using Redux [0]. Dispatching actions and writing reducers is _inherent_ complexity. It's part of Red
694.
▲
by
acemarke
7y ago
As I noted at the start of the post, I updated it literally yesterday with some additional information and links and then tweeted about it, which is why someone else apparently decided to submit it today.
695.
▲
by
acemarke
7y ago
That's literally the point I'm making in the article. There's a huge difference between all the chatter on social media, and the actual stats reflecting Redux's usage. Two charts to illustrate this: First, overall downlo
696.
▲
by
acemarke
7y ago
That would be the "Style Guide" docs page: https://redux.js.org/style-guide/style-guide
697.
▲
by
acemarke
7y ago
Not sure what you mean by "moving the goalposts" here. I'm trying to make a few specific points: - Redux is not "dead" in the sense that it is still widely used and is continuing to be adopted - There are definitely
698.
▲
by
acemarke
7y ago
Note that the new `createAsyncThunk` API in Redux Toolkit handles generating and dispatching the promise lifecycle actions for you [0]. Also, while sagas are a great power tool, most Redux apps don't need them [1]. [0] https:/&#
699.
▲
by
acemarke
7y ago
Yeah, as I tried to make clear in the post, there's many other excellent tools and libraries in the ecosystem, and they _do_ overlap with the kinds of use cases that might have made people pick Redux in the past. For the record, I'
700.
▲
by
acemarke
7y ago
Yeah, as I talked about in both the original blog post and my parent comment, we've specifically designed Redux Toolkit to eliminate the "incidental complexity" that came along with using Redux [0]: - Immer makes writing immu
701.
▲
by
acemarke
7y ago
It's worth noting that the Redux DevTools Extension _can_ capture and display a literal stack trace for every dispatched action, if you've enabled that while setting up your store. This allows you to see what part of your app tri
702.
▲
by
acemarke
7y ago
Oh hey, that's my post. I first wrote it back in 2018, and just updated it yesterday with some additional links and comparisons. (Actually was considering retitling it after getting some feedback last night, but given that the link jus
703.
▲
by
acemarke
7y ago
I'm not sure why you're talking about "object oriented". TS, in and of itself, has nothing to do with OOP. You can write functional-oriented code in TS same as you would in JS. TS doesn't mandate use of classes o
704.
▲
by
acemarke
7y ago
https://blog.isquaredsoftware.com I'm a Redux maintainer, and primarily blog about React and Redux-related topics. I'm particularly proud of my "Idiomatic Redux" series, where I've written multiple 6-10K
705.
▲
by
acemarke
7y ago
One of my favorite classic articles is this post from 2003 by Eric Sink, "The .NET Abstraction Pile", which lists 46 separate abstractions that are involved from clicking the "Check In" button in a networked version cont
706.
▲
by
acemarke
7y ago
I've always pointed folks to Gosha Arinich's posts on forms in React [0], as the best resource out there, particularly the post on "controlled vs uncontrolled inputs" [1]. (And if you really want to go in depth, he wrot
707.
▲
by
acemarke
7y ago
You're conflating several different things: patterns specifically recommended by the React team, patterns in vogue in the community, specific libraries from the community, and actual API changes in React itself. The React team did defi
708.
▲
by
acemarke
7y ago
Noooo, the Android app and website are going away? I've been using them the last several years and loved the simplicity and balance of detail. That's awful.
709.
▲
Building a Mean.js AngularJS Project with Create-React-App
(blog.isquaredsoftware.com)
2 points
by
acemarke
7y ago
|
0 comments
710.
▲
by
acemarke
7y ago
As I said, we're in the process of rewriting the docs (and by "we", I mean "me", because I'm not getting any assistance with it so far). The "Quick Start" page I'm about to write will show RTK a
711.
▲
by
acemarke
7y ago
Yeah, a number of folks have said "we wish RTK is how Redux always was". I wish that too, but there's no way we (or more specifically Dan and Andrew) could have come up with Redux Toolkit's API at the beginning. For bac
712.
▲
by
acemarke
7y ago
I'm not sure what you mean by "it's not Redux". It's still 100% Redux. You create reducers, add them to a store, dispatch actions, and read that data in your components. None of that has changed. You're just
713.
▲
by
acemarke
7y ago
> I did not like the whole Redux experience Out of curiosity, anything specific that concerned you? If you haven't looked at Redux lately, a lot of stuff has changed. We have a new official Redux Toolkit package [0] that is now our
714.
▲
Redux Toolkit v1.3 with New `CreateAsyncThunk` and `CreateEntityAdapter` APIs
(github.com)
2 points
by
acemarke
7y ago
|
1 comments
715.
▲
by
acemarke
7y ago
On the flip side, there's a thread on Twitter taking apart the article as being very wrong: https://twitter.com/CT_Bergstrom/status/1241522140559503360
716.
▲
by
acemarke
7y ago
There's plenty of reasons to use Redux, even with the additional variety of (good!) options in the ecosystem. You might want to watch my talk on "The State of Redux" from Reactathon 2019, where I covered some of this: https:
717.
▲
by
acemarke
7y ago
It's completely independent of your data sources. You provide the data and tell it how to set up filtering and sorting and such, it provides the transformed rows, you render the rows as desired.
718.
▲
The official Redux+TypeScript template for Create-React-App is now available
(github.com)
3 points
by
acemarke
7y ago
|
0 comments
719.
▲
by
acemarke
7y ago
FWIW, our new Redux Toolkit package is specifically designed to eliminate the typical "boilerplate" concerns when using Redux: https://redux-toolkit.js.org
720.
▲
by
acemarke
7y ago
Yeah, that's actually something I'm planning to add to the Redux docs shortly - a "Quick Start" tutorial page that shows things in a "top-down/how-to" approach (specifically using our new Redux Toolkit pac
More ›