One (possibly useless, but here it is) thought is that most dogs just want to chase you, they really don't want to catch you. They definitely don't want to get run over by you, and they are much more agile in more directions than you are. The only time I've been bit by a dog on a bicycle is when I stopped to talk to its owner.

I deal with my neighbor's dog on my motorcycle many days. It's very different, but also starker. On the moto, I could run over the dog without major consequence to myself... but I REALLY, REALLY don't want to, so I don't. On the other hand, if I hesitate or pay too much attention to the dog on the rutted gravel driveway, I'm going to fall over and break something on the motorcycle and possibly need help picking it up. So I don't do that, either. Bottom line is, the dog gets close, but she stays out of my way. It's been instructive, and it's not nearly so scary as it was at first.

On the velo, I do the "bad dog" thing, but I don't know that it has any effect. Definitely there are biters, and that's scary... but I have a feeling they're in the minority, especially for road riders who are in territory that the dogs know belongs to other vehicles. For the most part, I don't adjust my riding to the dogs any more.