That's far from sure at this point. Yes, HN is a hotbed of intermittent fasting propaganda [1], which may make it seem like there is general agreement. But you'll find other communities pushing other diets as the one true diet, so... more research is needed.
[1] Note, for example, that the submitter subtly but crucially changed the title, which in the original says "works for many" (emphasis mine).
I've personally lost a significant amount of weight and kept it off continually for more than a decade. But I don't really know how I did that, nor do I have much confidence that whatever I did would work for others.
The key of any weight-loss diet is that it somehow hacks our brain so that we end up eating less. But everyone’s brain is different, so different hacks work (or not) for different people. That’s why you have so many diets - fasting, intermittent fasting, keto, paleo, zero carb, low fat, food separation diet, ...
Personally, intermittent fasting hasn’t helped me lose weight (might have helped me maintain it though). So far, the only thing that has helped was very strict calorie counting, but that was accompanied with severe emotional/mental discomfort (constant hunger). I’m now experimenting with one-day fasting (turns out not eating, for me, is associated with less hunger than eating too little, go figure ...), we’ll see how t goes.
But then in my 40s my thyroid failed and I have hypothyroidism. I suspect it was failing for a decade maybe a bit less. I should say my thyroid was working less not really failing since that takes a while to notice rather than an outright failure.
Now I consistently weigh 40 pounds more than I did all my life. I was always the slim guy who never gained weight. Now I have to fight the urge to eat food when I am not hungry. It feels like I need something to reset my clock or reboot my programming.
The magical part is sticking to it though.
Methods for the "material" part of the problem are here. But the psychological problem will probably not be solvable by any "method". Its up to anyone's own mastery of itself and its a personal development issue.
If you’re so inclined, Google the exact article URL, then click the first result that matches.
I've done a lot of fasting. The results seem pretty good. Pulling it off is non-trivial.
At this point, we need "magical", because nothing else has really seemed to work in general for losing weight.
(And no, didn't read the article, because paywall.)