Last night, after business hours were over, I sat there with some code that I had written to create regex-like statements to exclude dates based upon a format and time frame given. I now had to plug this code into an existing application that got its data from another server... but I digress. After my coworker walked away from doing what he came to do, I decided that while finishing this part of the project I would crank up my MP3 player and blast music throughout the office. During a particularly powerful part of NiN's "Where Is Everybody?", I finished, got the output I had expected/hoped for, and realized my night of coding was at an end. Perhaps the music had something to do with it, but at that moment, I felt very in tune with the code, perhaps even a bit euphoric.
So I ask you this... what is your most productive/favorite coding environment (and I don't mean IDE's here)? Or perhaps, your least productive/favorite coding environment?