Ketamine - Similar to LSD, but helped blunt the effects of depression
Amphetamines - Helped me focus, improved my memory, increased productive hours
Weed and beer - Helped me relax and get into a creative mood. Great for socializing, too
Sugar demolishes me. I'm useless on a sugar high. I compensate with fiber and fat so I can use the energy.
Alcohol, I hate how it makes me feel. Angry and uninterested in actual work. I only drink a beer or two when forced to socialize with drinkers.
I feel that the best code comes out when I'm mellow, but with just enough energy. Too much or too little usually leads to not wanting to do anything related to programming. I guess it's just about keeping things balanced.
Take a dose and read Programming and Metaprogramming in the Human Biocomputer.
It will change your life.
Both. It can help me get into "auto-pilot" which is either good when I am efficient or bad when I am procrastinating.
Sugar.
Bad. Hurts your attention span when you're on a "high" and hurts your motivation when you're on a "low."