Dogs are a pain in the ..........
I am not a dog-hater, but there are times when I wish a large car would come out of nowhere and totally annihilate the dog that is trying to take a bite out of my ankle as I am doing nothing to it but riding my bike past. Okay, I know that sounds mean and I would probably feel bad for the dog and owners if it ever happened, but dogs can be a real problem when you ride mostly country roads. Sometimes the owners are worse. They see what's happening and do nothing to call the dog back. I've never lived on a farm, I guess I don't understand how they can think it's okay to just let dogs roam free. If they would train the dog to stay off the road, I would have nothing to complain about. I don't go on their property, the dog should STAY on their property and not on the road. Now that I've let off some steam, on to some advice.
As for what to do, I usually try two things if a dog comes out and surprises me. First, YELL, in a loud voice, as deep as you can make it, "NO" or "STAY" or "GO HOME". Different dogs respond to different things. Often they will stop long enough to let you escape. Second, squirt them with your water bottle. Try and hit them in the face. Again, they usually pause long enough for you to get away. Whatever you do, don't panic. It doesn't help, the dog can sense it. I don't use Mace or Halt. It comes out in a very fine stream and you have to have good aim to hit the dog right. When I am riding along and trying to escape, my aim isn't so hot. Also, I always wondered if it would blow back in my face if the wind was the wrong way. Wouldn't that be something! Water or Gatorade from the waterbottle is safer.
If you know the dog is going to be there, try and sneak by or speed by as fast as you can possibly go and try and outrun it.
I am guessing others will have some good suggestions, too. Let's hear them.
Time is a companion that goes with us on a journey. It reminds us to cherish each moment, because it will never come again. What we leave behind is not as important as how we have lived." Captain Jean Luc Picard