If a dog is barking incessantly at me while on a walk for instance, I look to discover where her/his territory may be - nearby tree, bush, hedges for example. If I am on a sidewalk, most likely the dog gives that sanctuary, since others have passed by before. If It is in front of me blocking my way, I look her/him in the eye, look at myself up and down, then ask in a calm voice - what? You want my shoes? Give a nod, then wait a few moments if passage will be allowed I walk by while not looking back. When I am just out of sight I run like H*** - just kidding.