As long as you're fighting against yourself—effectively first trapping yourself and then hacking yourself out of your own trap—you're not making actual progress. However, it's likely that you're either doing the wrong thing, doing it for the wrong reasons, or doing it at the wrong time.
My productivity just happens with the right task, project, or job. I don't care how many browser windows I have open or what's happening on IRC. I just have my emacs open and I probably flip it back and forth with a terminal window or wherever I can see my program running, and watch it grow.
But it's a terrifying thought to accept that you're not doing the right thing. It's much easier to try to remove all distractions.
My productivity just happens with the right task, project, or job. I don't care how many browser windows I have open or what's happening on IRC. I just have my emacs open and I probably flip it back and forth with a terminal window or wherever I can see my program running, and watch it grow.
But it's a terrifying thought to accept that you're not doing the right thing. It's much easier to try to remove all distractions.