2,239 karma · joined April 3, 2024
Edit: except when interfacing with C APIs.
No, but you're not more deserving either.
custom-validity={value.length ? "Fill out this field" : ""}
you can only use a static string for an attribute. So you'd need an event handler to set custom-validity from javascript when the input value changes, then a handler to setCustomValidity when custom-validity changes.In other words, it's the same exact imperitive interface as setCustomValidity, except with an extra layer and the extra event handling has to be implmented along with it.
If I had a say, I'd go for an interface where custom-validation would take a javascript function name, and that function would take the value as input and optionally return a string with a validity message. Or it takes a javascript snippet like onclick, except one which returns an optional string value. Then again, there wouldn't be much difference from onchange.
Edit: to counterbalance some of the criticism, I think the article is very nicely written and formatted, and the interactive components are a good touch.
To be clear, it's quite possible for a temporary elimination diet to aleviate unexplained symptoms, for instance from an unknown food allergy or intolerance. But then you need to slowly reintroduce foods to find which specific food causes the problem, otherwise your diet is bound to be nutritionally deficient. Eliminating all plants from your diet permanently is insane.
That said, horror movies specifically are often very underwhelming in the themes they explore, so horror videogames don't have a high bar to beat.
> The contemporary rate of extinction of species is estimated at 100 to 1,000 times higher than the background extinction rate, the historically typical rate of extinction (in terms of the natural evolution of the planet); also, the current rate of extinction is 10 to 100 times higher than in any of the previous mass extinctions in the history of Earth.
> A 2018 study published in PNAS found that since the dawn of human civilization, the biomass of wild mammals has decreased by 83%.
> The World Wide Fund for Nature's 2020 Living Planet Report says that wildlife populations have declined by 68% since 1970
> A 2023 study published in Biological Reviews found that, of 70,000 monitored species, some 48% are experiencing population declines from anthropogenic pressures, whereas only 3% have increasing populations.
And finally, with regards to rats:
> Bramble Cay melomys were declared extinct in June 2016.
It's a neat idea.
More seriously, if they follow a nearly vegan diet for ethical reasons, except they don't give a shit about bees, it makes sense to describe their choice as approximately vegan, rather than plant based, because it is approximately vegan.
So the article discusses multiple studies which find increased consumption plant origin ultra-processed foods is associated with an increased risk of disease and mortality. Seperately, another study found vegetarians and vegans eat a higher proportion of ultra-processed foods than the general population.
Does the subset of ultra-processed foods of which vegetarians and vegans eat more significantly overlap with the subset which increases risk of disease and death? We don't know; that's not in the data and the article doesn't discuss any articles linking vegetarian and vegan diets to higher risk of disease and death. What if vegetarians and vegans eat a ton more tofu and soymilk but less potato chips and Oreos?
The article sort of adresses this, but not very directly. Also, vegetarian and vegan diets are more of a footnote in the article; it's more about ultra-proccessed foods in typical diets. And the actual article title better reflects the focus, so I wonder why the post changed it so significantly.
1. Maximizing self interest using an understanding of social contract theory
2. A complex system of instincts that depends on others behavior, but doesn't manifest as intuition about the reasons for those behaviors
3. Like 2, but it manifests as an intuitive undestanding of how others may feel
I admit, 1 seems unlikely, even for humans. 2 and 3 sound more plausible, but 3 seems like the simpler explanation to me. We have an example case of it in humans (of course humans may additionally reason about others intent), and I'd expect similar tendencies to have similar mechanisms. Plus, grouping behaviors into intents reduces the number of rules needed for the observed behavior -> response mapping at the cost of some pattern recognition ability.
It's possible there's another explanation, including why similar tendencies aren't explained by similar mechanisms, despite the availability of similar "hardware". If there is, I'm not clever enough to have thought of it.