dumbmatter
Joined 11 years ago
Joined 11 years ago
> Warning you probably don’t want to use CGI for modern web development, see Why Not to Use CGI.
If you're not aware of that, it is very tempting to use `useRef`, which is what I have often seen. Before hooks, we did not have the temptingly-named footgun `useRef` for this scenario (although we did have other footguns for other scenarios, and overall I love hooks).
Also that the fix is "instead of using this one kind ref, use another kind of ref and put it in state"... I don't know, like I said I'm not sure if there is a better solution, but it still feels kind of unintuitive and complicated.
Now that I'm thinking about it... what is the reason that DOM refs and other refs need to be handled by the same concept? Every time I make a DOM ref, I'm doing something with it in a hook like useEffect. Why make me jump through hoops to re-run the hook if the DOM ref changes?
(I recognize there are probably good answers to those questions, the React folks are great, I just don't know the answers! Is it just to avoid introducing one more "type of thing", and instead making refs and DOM refs the same "thing"?)
I'm not sure if there is a less confusing way of doing it, but it's damn confusing.
For instance, several versions of Firefox had a serious bug in shared workers, which appeared intermittently when users opened your site in multiple tabs https://stackoverflow.com/questions/51092596/feature-detecti... - I had to use the user agent to work around this.
Early detection would still be valuable for other reasons, though.
20x more is not a sure thing, but for a disease like Alzheimer's that is already pretty common (e.g. we're not talking about risk increasing from 0.01% to 0.2%) it's more meaningful than just for entertainment purposes.
I agree with your wife that for most people their 23andme results will be nothing more than entertainment, but there are a handful of truly meaningful things it can find.
Although having the good version of APOE doesn't mean you'll never get it, and having the bad version doesn't mean you're guaranteed to get it. The odds do shift quite a bit, though.
Is that actually allowed by the GPL? I thought it was more like the "Ship of Theseus" - that even if you eventually replace all the original GPL code, the entire work remains GPLed. https://softwareengineering.stackexchange.com/questions/2603...