I think that says more about caffeine than anything, though. It's hard to generalize about drugs as a whole in a meaningful way. While marijuana probably has a neutral-to-slightly-negative effect on programming, and alcohol and opiates certainly do, piracetam/aniracetam/oxiracetam (for example) can has a pretty positive effect.