in reply to Coding while drunk
I'm not a drinker by choice. But I have found that sleep deprivation serves the same purpose. I used to work the graveyard shift at my old job. Only, no one respects the fact that you sleep while they play and work, resulting in a somewhat chaotic sleep patterns. I found that the less sleep I got, the more interesting problem resolution tended to be.
all hail perl's TIMTOWTDI and DWIMing! I remember countless nites where I'd go "now, I know C will never let me do this, but this is perl, and it might let me. HOLY MONKEYS IT WORKED." It was like falling in love with perl all over everytime something like that happened. These revelations continue through today, especially when my mind is functioning irrationally. ;)