I was just saying the other day that fasting in Ramadan could work as alternative to Soylent[1]. Eating one meal a day frees up a lot of mental cycles that goes into thinking about food (what will I eat for lunch, where from, etc). It also allows for longer stretches of uninterrupted coding time. And probably most importantly the post-lunch slump is gone.
One phenomenon that I hadn't found an explanation for is that I get an explosive amount of energy around 6 or 7pm (just before breakfast at 8.30pm). And this hour is my most productive hour of the day.
[1]: https://twitter.com/amasad/status/746870830370533376?s=09