How do I regain my attention span?
makecheck: Break up tasks into the smallest parts that you can.  Once you start finishing a few of these, you'll notice significant forward progress.Release to the public often, and write notes that highlight your changes.  That's important, because it forces you to think in terms of those notes; if there's nothing "release worthy" happening, it would be hard to write anything.Every now and then, allow yourself to do tasks that aren't strictly related to forward progress.  Fix some code formatting you've been meaning to do; write a document; try something new.  The mixup helps to keep things from becoming boring.Don't be afraid to literally walk away.  If I talk a walk for an hour, I can often do as much work in my head as I would at the keyboard, but it helps me focus (and it's healthier).