dogs and bikes… dogs and bikes…
if waiving hands and yelling at bears and mtn lions scares them nothing to say this approach doesn’t/won’t work against canines
unless they happen, as Tom D. said, to be trained otherwise
in which case barking usually will be enough to deter
should be done in parallel with accelerating though, and you should be able to get yourself out in front of them
beware if they are in front of you and a large, fast breed however as they may be able to get under your front wheel
never stop pedalling. we have a few out in front of some rural locations, and when/if you stop pedalling- 1. you start slowing down, 2. they will usually fane like they may go for your ankle
change routes next time if possible
you are invading their space, so you have to get out of there
i have had to stop, dismount, and confront a few times. when doing so am always careful to keep bicycle between myself and said canine
as soon as you dismount they almost always lose complete interest as you are now just a pedestrian not a spooky circle spinning, funny noise making, fast, humanish shaped contraption of some sort- especially when/if the bike is in between you both
with the bike in between there is no reason for the dog to pursue
owner will usually come out
if so/not just walk backwards out or back depending ~50yrds down road, remount, and continue your ride
dealing/being able to deal with animales really is something one should learn prior to riding a bicyle for an extended distance
again- first line is yelling, barking, accelerating
if this doesn’t work (will ~99.9% of the time) continue peddaling, if it looks like it may get ugly or under front wheel dismount and keep bike in between
p.s. Tom D.- I met one of your cute, small, little furry Javelina friends the other day, but he chose that he didn’t want me to pet him- darn 
i left him a little gift instead
oh well
p.p.s. saw a (more than likely) related family a little later on the way out, and didn;t even think twice about whether i should get down and try to make friends…
take care,
