Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
acemarke
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
151.
▲
by
acemarke
4y ago
Yep, my day job is working on the Replay time-traveling debugger for JS ( https://replay.io/ ). Also saw someone post an indie gaming company's TTD development environment yesterday: https://www.reddit.com&#
152.
▲
by
acemarke
4y ago
The article isn't _wrong_ - React, Redux, and Next are all still the leaders in their respective categories. (And I say that as the maintainer of Redux and someone who's active in the React community.) But it's also worth no
153.
▲
by
acemarke
4y ago
Oh hey, I just wrote this page yesterday :) Redux usage has changed dramatically since 2019 thanks to Redux Toolkit + React-Redux hooks, and we get feedback on a daily basis from folks telling us how much they enjoy using it. But, a lot of
154.
▲
by
acemarke
4y ago
FYI, we recommend that most folks should not write promise management, data fetching, or loading status tracking code directly If you're using just React, use React Query or something like `react-async`. If you're using Redux, use
155.
▲
by
acemarke
4y ago
Flow is effectively dead. Yeah, there's still a team at Facebook developing it, but they've made it clear they don't care about any use cases or requests other than Facebook's own internal needs. TS won, and the ecosyste
156.
▲
Things I want to see in JavaScript and Front end development in 2023
(paularmstrong.dev)
3 points
by
acemarke
4y ago
|
0 comments
157.
▲
by
acemarke
4y ago
It's been only loosely maintained over the last couple years. Also, despite the `facebook` org, as far as I know the last couple maintainers were not actually Facebook employees. See this discussion thread from a couple years ago: ht
158.
▲
by
acemarke
4y ago
Great investigation work and excellent writeup! Out of curiosity: did anyone end up filing issues or PRs against these tools as a result of either of your articles?
159.
▲
by
acemarke
4y ago
I sorta see what you're saying, in that `foo` wasn't passed into this function as an argument. But I do still think this is a general misconception of how React works. Every React component, whether it's written as a class c
160.
▲
by
acemarke
4y ago
Hi, I'm a Redux maintainer. This is a good post, but I'm a bit surprised it doesn't talk about memoized selector functions at all. We specifically teach those as a way to improve performance, by avoiding costly transformatio
161.
▲
by
acemarke
4y ago
Say you have `<Parent>` and `<Child>`, and `<Child>` is outputting several HTML elements when it renders. There's three major aspects that control what happens to the DOM nodes that React created for `<Child>`:
162.
▲
by
acemarke
4y ago
> "not documented what the process is" It's fairly straightforward. React uses a module-scoped variable, assigns to it when it starts rendering a component, and nulls it out when it's done rendering the component. An
163.
▲
by
acemarke
4y ago
I recently built our React DevTools support for Chromium. I used our time-travel debugging backend to inject the RDT logic into the paused browser at every React commit to extract the tree operations data. This post covers how the React Dev
164.
▲
We Rebuilt React DevTools with Replay Routines
(blog.replay.io)
6 points
by
acemarke
4y ago
|
2 comments
165.
▲
by
acemarke
4y ago
Hey, that's pretty neat! I'm a Redux maintainer, and it's always great to see people building things with Redux Toolkit / RTK Query. Congrats!
166.
▲
by
acemarke
4y ago
FWIW, Redux literally _is_ a pub-sub/observer pattern implementation :) And the Redux core library _is_ extremely small. But, that led to the community building hundreds of addon libraries for the same sets of use cases, which is what
167.
▲
by
acemarke
4y ago
Redux is still by _far_ the most widely used state management library in React apps. By my estimates, around 35-40% of all React apps use Redux, and that's far more than any other state library in the ecosystem: - https://b
168.
▲
by
acemarke
4y ago
Hi, I'm a Redux maintainer. I'll definitely agree that Redux _has_ been overused. But it's also worth understanding _why_ Redux was created in the first place and why it got so popular. As a brief recap: the first major wave
169.
▲
by
acemarke
4y ago
I would definitely disagree with "Redux is out of fashion". Redux is still by far the most widely used state management lib with React apps, by a very large margin - my estimates are that 35-40% of React apps use Redux, and no ot
170.
▲
by
acemarke
4y ago
Huh. As the current Redux maintainer, I'm not sure if I'm impressed or horrified at this :) (now I'm curious how well it would handle requests using our modern Redux Toolkit API syntax...)
171.
▲
by
acemarke
4y ago
The usual misunderstandings about context are: - Thinking that if you change a field in the context value only components that read that field will re-render - Thinking that _only_ the components that consume the context will re-render, not
172.
▲
by
acemarke
4y ago
Sure. I just spent a few minutes poking back through the other weather apps I've got installed on my phone to see how their radar maps look. The two I like best are Windy and Ventusky. Both feel pretty readable in terms of background l
173.
▲
by
acemarke
4y ago
This looks great! I have loved the UI of Dark Sky (to the point of continuing to use the "Darker Sky" modified APK for Android, which is now due to die off in the next few days). So, seeing a replacement for the desktop site is w
174.
▲
by
acemarke
4y ago
See my extensive post "A (Mostly) Complete Guide to React Rendering Behavior": - https://blog.isquaredsoftware.com/2020/05/blogged-answers-a-... as well as these other excellent posts on React's int
175.
▲
by
acemarke
4y ago
Calling `setState` while rendering has been a legitimate thing to do since hooks first came out, but _only_ in one specific scenario / usage pattern. From the original hooks FAQ at time of release: - https://reactjs.org/
176.
▲
by
acemarke
4y ago
Just to check, are you using "modern Redux" with Redux Toolkit + React-Redux hooks, or the older-style legacy "handwritten" Redux patterns that existed before Redux Toolkit? If you haven't seen RTK, we designed it t
177.
▲
by
acemarke
4y ago
I'm genuinely curious - do you have any examples of "misusing `createSlice`"? FWIW I see folks misusing / misunderstanding Context on a near-daily basis, mostly around misunderstanding what components will re-render and
178.
▲
by
acemarke
4y ago
Absolutely, and that's a major reason why we specifically teach the React-Redux hooks API as default today, and have guidance on setting up "pre-typed" hooks with the store types baked in: - https://redux.js.org&#x
179.
▲
by
acemarke
4y ago
Seems like most of the issues here are caused by an incomplete understanding of how React rendering actually works. That's why I wrote an incredibly extensive article on this: "A (Mostly) Complete Guide to React Rendering Behavior
180.
▲
by
acemarke
4y ago
Daminion Standalone is pretty good. Been using v5.x for a while, haven't needed to try a newer version: https://daminion.net/downloadstandalone/
More ›