If I need a stimulant to keep me awake, I go to sleep.
Pulling an all-nighter when I'm already in sleep debt only produces code that sucks. The next day, I'm too tired to be functional and I've got a bunch of code that needs to be thrown out and rewritten. Sleep is a better use of time.