Digital Foundry leaves IGN, now independent [video] (youtube.com)
40 points by zdw 2d ago 6 comments
PHP compile time generics: yay or nay? (thephp.foundation)
54 points by moebrowne 3d ago 17 comments
Show HN: Reactive: A React Book for the Reluctant (written by Claude)
37 DavidCanHelp 34 8/11/2025, 12:44:53 AM github.com ↗
All things being equal - if I'm going to entrust my entire education on a tech stack to an LLM... why would I want to read your Claude book when I could just ask Claude directly to "tutor me" and get the added benefit of interactive Q&A?
https://react.dev/learn
The new docs are very good, they address common questions most devs have, up to fairly complex cases. The "book" unsurprisingly reads like a expert beginner's take, and there are a decent number of poor or missing explanations and code that's not really best practice. It's also really verbose for things that React's own docs do a better job of explaining.
Personally, I find “learning through demystification” really effective. So putting the humor aside, I’d love to see more things written like this.
"the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work"
Quote1: "useEffect is React's answer to the question, "How do we do side effects in functional components?" The answer, apparently, is "Confusingly, with lots of bugs, and in a way that makes developers question their sanity."...If React hooks were a family, useEffect would be the troubled teenager who means well but keeps setting the house on fire."
Quote2: "ComponentDidMount's Evil Twin: In the before times, we had lifecycle methods that made sense...Clear, explicit, predictable. React looked at this and said, "What if we combined all of these into one confusing function called useEffect?""
Quote3: "The Dependency Array of Doom: The second argument to useEffect is an array that determines when the effect runs. Sounds simple. It's not."
Quote4: "Cleanup Functions: Forgetting Them Since 2019: useEffect can return a cleanup function. You'll forget to add it. Every. Single. Time."
Quote5: "The Infinite Loop Trap: Want to crash a browser? useEffect makes it easy!"
As a big native web components fan, I've been mystified about the popularity of react.
It, like angular, solved a problem that definitely existed prior to the custom elements spec.
But with custom elements and your favorite rendering library (lit-html, jsx, whatever) I really haven't seen a powerful technical argument for react, other than the ecosystem.
I've had an easier time learning Vue than React, and I've probably spent much longer trying to learn react. And if im not wrong, AI writes better Vue code than react code as well.
Most issues stem from developers refusing to read the docs and to plan their presentation layer.
Might be because mediocre engineers don't read the docs.
Just have each component maintain it's own state. Class setters work great. If you need the component to update, just call render() in the setter.
It's super simple, encapsulates logic, and brain-dead simple to debug. You know exactly where to go for everything: the component.
I've always felt like react's approach to state management was creating more problems than it solves.
Every react team I've migrated over to WC have picked it up within a couple days, and I've had universally positive feedback on the change.
Also, the web components ecosystem is pretty dang good these days. Between ionic, shoelace, and all the others, there aren't really any functional gaps that I've seen.
I think at this point it just has momentum, and people just go with what they know.
I've never really been a big one for that particular argument though. I've seen the same argument made about Cold Fusion, flash, flex, visual basic, asp server controls, jquery, dojo, moo tools, backbone, and many others.