The official DSM-V criteria, along with helpful explanations, are available here: http://www.cdc.gov/ncbddd/adhd/diagnosis.html
I'm still not sure how hyperfocus came to be such a popular idea on internet ADD forums and self-diagnosis websites. If someone can point me toward the etymology of the idea, I'd really like to see it.
It doesn't matter whether it is a coding problem, video game, book, website, or any other task. There are times when there is something much more important to be focusing on, but it requires such an insane amount of effort to focus on that thing, that you simply don't. Or maybe you do focus on the important task, but chances are it doesn't get your full attention or you end up distracted very quickly.