They basically started on the billing system for their VR and decided to pivot to that.
1,692 karma · joined August 27, 2013
fightingwithai.com patterns of agentic coding
They basically started on the billing system for their VR and decided to pivot to that.
It unfortunately does not, you can hve various foot guns with refs or omitting dependencies from the array argument; but to your point it makes it a lot easier to ensure you do it correctly by collocating logic related to each cross cutting concern instead of entangling the code in the lifecycle methods.
More precisely it makes it easier to follow correct patterns, but as always that is subjective and hooks can be contentious :)
If peering between any of these entities is interrupted, there are sometimes “stand in authorization” that allows the card to continue to work, or people may assume the visa network itself is at fault even if it is not the issue per se.
It’s possible (even likely) that a retailers payment processor is having issues in certain scenarios and the retailer just issues a blanket statement “visa is down” which is actually a misnomer.
I wouldn’t characterize this as Tesla allowing users to swap the pedestrian alert sound, even though the NHTSA is expressing concerns consistent with that, they go on to concede unambiguously that it’s not the case.
It sounds like actually they are concerned both features can emit noise at the same time.
A good faith interpretation is that blind users may not realize it is a car because they didn’t hear the “car noise” over the noise of the boom box.
However, this seems like NHTSA is being sensational. A driver could also just have music playing inside the cabin with their windows down, and it doesn’t seem that different. From that perspective, forcing tesla to do a “recall” seems dubious. Whether the “boom box” noise comes from the “pedestrian alert” speaker or some other speaker seems like a technicality to me.
Either way, the NHTSA’s request is pretty reasonable, despite their concern seeming contrived. Disabling the boom box while summoning the car doesn’t create undue burden for tesla or it’s users, but it doesn’t really solve anything either (as noted by Tesla there have been no issues with the previous functionality). It feels like theatrics on behalf of the NHTSA.
> To help surface these issues, React 18 introduces a new development-only check to Strict Mode. This new check will automatically unmount and remount every component, whenever a component mounts for the first time, restoring the previous state on the second mount.
https://reactjs.org/blog/2022/03/29/react-v18.html#new-stric...
> React complains that you tried to change the state on an unmounted componment.
They actually got rid of that in the new react :)
> handle the double rendering issue when interacting with the DOM directly
I think the idea is whatever they do to the DOM needs to be idempotent. Those should be using useLayoutEffect usually.
Perhaps the people criticizing it so flagrantly are oblivious to the goals motivating their design choices.
No one is forcing you to use it.
I don’t believe having devtools opens changes the runtime semantics of the app.that would defeat the point of the devtools.
I do know it annoyingly logs things twice
Isn’t it just like with the police, they can legally lie in this context? “If you turn yourself in we’ll go east on you”. They can just turn around and fire him anyway because it is an at will work state
When your car drives more and more autonomously having manual controls that can accidentally be activated start to make less sense, we’re not there yet, but someday there will likely be no steering wheel at all and people will react the same way they are now.