Flow
en.wikipedia.org
en.wikipedia.org
You'll likely continue past the 48 minutes, if you hit a good flow state, or you can take a deliberate 12 minute break and go for an hourly cycle.
Simple Windows timer: http://www.orzeszek.org/blog/2009/08/21/simple-countdown-tim...
And Mac dashboard widget: http://www.apple.com/downloads/dashboard/calculate_convert/m...
http://www.pomodorotechnique.com/
Windows (and Mac too) - http://www.focusboosterapp.com/
Mac version - http://pomodoro.ugolandini.com/
I run a 3-person game development studio, so I have a lot of other concerns pulling at me (aside from the programming task at hand, or whatever I need to do on the project iself). It's always easier for me to hit flow when I don't have so much meta stuff to worry about.
I guess the point that I am trying to make is it's so much the technique you start with, but rather what you end up with. Having mini-mental distractions seemed like the norm to me, but forcing myself to keep my mind on a particular task allowed me to go for longer periods without being distracted.
After a while, you really don't need a tool to help you focus, but it's a good starting point.
Another important note: it isn't so much that you avoid distractions as much as you stay in the present moment. Hindsight and foresight may guide your actions, however, you can only act in the present moment.
If you are conscious about being in the zone, while being in the zone, are you still in the zone?
Allowing the distractions to flow past you while you stay focused on the task at hand is what gives the optimal results. Trying to completely numb yourself to distractions won't work a well. That's why there's something in the Pomodoro technique where you make a hash tick and write down what you want to do later; it flushes that thought out of the queue. It also keeps your peripheral awareness opened up so that your right-brain-side can explore alternate avenues and come up with innovative, and occasionally creative solutions. If you stay focused strictly by blocking everything else out, you gain tunnel vision. In that state, a person crushes obstacles by banging his head against it enough times. Otherwise known as Brute Force and leads to Sunk Cost Fallacy.
Physical relaxation is also very important -- so good, supportive posture, deeper and relaxed breathing.
If you want to practice all of this in a deeper way, I recommend http://www.vipassana.com/meditation/mindfulness_in_plain_eng... This concept and the way to enter "flow" is not new. It's pretty ancient. I've used the Pomodoro technique to configure my work environment, but mindfulness is what I practice to optimize my ability to perform.
I have been recently doing a lot of reading on social psychology, any other book you (or anyone else) would recommend?
Gamers will get into zones, similar to athletes, where their reaction times become ultra quick and reflexes are super sharp. Game designers sometimes try to bake these directly into the game, and it's arguable whether or not it's beneficial. For example, many people complain about the killstreak rewards in Modern Warfare 2; once you get going, you're pretty much indestructible.
Post-deploy hooks are available for your source control system of choice. You could have your computer tell you "Nice job" for one commit (if automated tests pass), "Keep it going!" for two in an interval, "He's on fire!" for three, "BOOM that's amazing!" for four, etc etc. This would incentivize yourself to do "just one more commit", in the same fashion as Civ and whatever get "just one more turn."
(If doing it over a work day wasn't working for you, you could bump the visualization to your dashboard and create a chain, with one link for every day you do task X. Don't break the chain, as per Seinfeld.)
This assumes, critically, that a commit is a measure of forward progress towards business goals.
My personal favorites are top-deprecating, where the top player is slightly easier to hit / harder to play / worth more points, or totally flat. It makes it extremely hard to really shine in a game, and when someone maintains a good score, they've earned it.
I often play it to distract my body while working out algorithms. It's a surprisingly effective way of thinking through hard problems.
Link for those interested in Gunroar: http://www.asahi-net.or.jp/~cs8k-cyu/windows/gr_e.html
I do notice that if I'm in like barns and noble programming (just to get out of the house) I am flow'n.
And the article's inclusion of what is considered flow in hip hop doesnt really relate, but I see how they are trying to include it.
A great example of flow is when Dave Chapelle did standup for 4 or so hours straight.
Josh Waitzkin figured out a method for consistently triggering flow in his book, _Art of Learning_. The structure of his method depends on simple things, mainly behavioral conditioning. The method works. I also want to note, he has used it for both primarily mental tasks (chess) as well as physical (competitive push-hands).
One last thing: Deepak Chopra produced a game specifically designed to teach someone to enter the state of mindfulness (which, when applied to challenging tasks, gets you flow). It is called "Journey into the Wild Divine". It uses a USB sensor stuck on your finger to measure heart-rate variability, among other things. You can only advance through parts of the game when you can demonstrate the ability to consciously relax and stabilize your heart rate at will. It's a game specifically to teach flow, not just to reward or punish the secondary effects of flow.
A little bit of anxiety might not be bad though. As your skills improve then you might pass in to the Arousal phase. But also as your skills improve the challenge is decreased (gravitate towards the middle). Eventually you might become over-skilled at the task and the challenge becomes low, then you're Relaxed.
If you want a modern book on how to consistently trigger this state, there is Josh Waitzkin, _Art of Learning_