I feel surprisingly okay during these periods, but it doesn't last forever. Eventually my day time performance starts to slow and then I go back to a normal routine where I still code almost non-stop except I sleep for 4-7 hrs depending. It isn't out of necessity, it's out of enjoyment, which is probably why I can get away with it.
(obviously, I eat, shower, and do take short breaks which usually means Wikipedia, blogs, and such)
This isn't for everyone. I'm sure its very unhealthy and I have no doubt I won't be able to continue this pattern when I'm older, but it's gotten me some incredibly productive work done. It's so much easier to stay focused FOR ME if I work on something in one sitting then to break it up. Some people are more productive sleeping 8hrs a day...but I'm not one of them. It's hard to sleep that long for me and I end up feeling like I slept all day.
It's so hard not to binge when there's always something to learn!
Lastly, like most on here I grew up from a very early age sitting at my computer. Thankfully for me that means I rarely get tired of it.