First off, I've got to have music. Depending on how the coding session is going I'll pick an appropriate playlist ranging from early Type O Negative to Johnny Cash and Marty Robbins. Listening to music that I actually pay attention to is not a very big distractor for me, and it often helps. Sometimes I'll be stuck at a problem, and I'll just jam out at my desk to a song and jump back in refreshed.
As far as physical environment, I prefer to have the lights off, except for a reading light. Lots of desk space is a must so I can organize my various books and printouts.
I've found that a beer or two usually helps me write (interesting) code. I've also learned to never write comments while drinking. I've still got some code that I have no idea what it does, and the comments look like they're written by the Swedish Chef.

As far as least favorite environments, it would have to be sitting next to my cube mate who takes great delight in interrupting me every ten minutes to show me the newest TV ad he's found on adcritic.com. rrrrr

Guildenstern
Negaterd character class uber alles!

In reply to (Guildenstern) RE: What are your favorite coding environments? by Guildenstern
in thread What are your favorite coding environments? by xjar

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.