I used to collect massive quantities of cheap cola and consume these massive quantities to place myself in states where I could be awake for days at a time, in the most extreme cases. Some of this time would be spent programming. Nowadays I'll settle for the odd cola, but I try to drink tap water. I don't eat anything while I program.