it really boils down to work flow---are you actually producing output or spinning your wheels on unproductive thoughts and actions (reading hacker news, Facebook, talking on the phone). To get better, you have to maintain a consistent strong focus on producing.