Finally, I discovered the main problem with me and my coding sessions:
if I'm online, my coding speed goes to a grinding halt, until I stop
coding and go read blogs, check my e-mail every thirty seconds, chat,
chat, chat, chat and chat a little bit more. That's it. Today, I've
made an experiment: I was helping Jonas to implement a definition
validator for AspectWerkz, and, after asking him a few questions, I
went offline.
Roughly two hours later, I had something like 240 lines of code,
already tested, somewhat debugged, somewhat refactored and clean, and
javadoc'd properly to my likes. I'm sure Jonas won't like the variable
naming (I use this.foo instead of m_foo, which he prefers) and
formatting (just using plain ol' Ctrl-Shift-F in Eclipse, which does
some nasty things on long lines), but the code is there.
How long would I take to do this while chatting, reading blogs, and
getting distracted all along the way? I don't know, maybe, in the end,
I wouldn't even manage to finish it. Cool, looks like I found my
productivity switch: it's called the Disconnect button :)