I sometimes visualize meters over my head like a character from The Sims. The most important being level of concentration. I try to identify the things that negatively affect that meter and manage them. For me, distractions as simple as a five minute random conversation with a passerby can scramble the stack in my brain and cost me a good 30 mins of productivity. Too many consecutive interruptions and I'll get too tense to easily regain focus.

I dedicate the early part of my day to eliminating distractions. Handle the e-mail, phone calls, voice mails and co-workers that just want to chat, and review assignments to my employees. Then I shut the door and let my office manager redirect anybody that comes knocking. I wouldn't hear them anyway with the headphones.

All distractions aside, I lay out goals for the day's work and get to it. Having set goals gets me focused before I even get started. The rest of the day usually flies by.

On the bad days, when the focus or creativity just isn't there, I find something productive but relaxing to do. I'll try out a CPAN module I saw and wanted to mess with, or spend a few hours with an O'Reilly book.

If I'm pathetically awfully unproductive, I'll compose long winded forum posts and go home to play Team Fortress 2.

sundialsvc4 touched on this, but I try to never mix home life and work life. I don't entertain myself at work, or work much at home, because then when I'm at work I'm subconsciously trying to talk myself into playing games, and when I'm at home I feel guilty if I relax too much because maybe I should be working instead. It's a guaranteed recipe for a period of burnout.


In reply to Re: How do you code? by Perimus
in thread How do you code? by bastard

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.