I down a shot or two sometimes when I'm too stressed, and start worrying too much. It helps cut the tension sometimes. The quality of my code goes down from my best work - but most of the time, the code youre writing doesn't really need to be very good. In these cases, I think marginal code that actually does something productive is better than random defensive abstractions I tend to write when I'm too anxious. I've tried just having a beer or a glass of wine instead, but the actual process takes longer and I 'feel' like I'm drinking. Taking a quick shot somehow feels more ... medicinal?