How do I regain my attention span?
j_baker: My experience is that difficulty concentrating is rarely the problem itself.  It's usually a symptom of a problem.  Rather than trying out tricks, your best bet is to tackle the problem head-on.First thing I would recommend is that if concentrating is a serious problem for you, you should see a doctor.  Since this is something that's just come up in the last few years, it's likely not something like ADHD.  However, this can be caused by a number of psychological ailments (anxiety, depression, etc) and physical ailments (diabetes, hypothyroidism, etc).That said, it's important to note that distraction is often a learned behavior.  Do something to break the habit.  Try programming in new places, don't use the computer you program on for personal browsing, etc.Also, it's amazing what a little exercise can do.