Challenging dogs can be a rewarding proposition. I've done it myself many times with good results. First, some rules.The larger dogs who aren't making any noise and aren't bothering you should be left alone. They are the self confident ones who know there is no need to prove themselves by making noise. They will deal with you if they have to, and they're able to do so. Second, leave all pit bulls alone. Avoid them, and run if you have to.
Most of the rest are insecure dogs who think making lots of noise lets their owners know they are "on the job". They quickly fold when challenged. Or you can simply chase them so far away that they will never find their way home. This usually solves the problem permanently.
The 'big bark' works well too. Once, on a walk through the neighborhood, an owner was in the front yard gardening. Her dog was on the sidewalk, barking like mad at me, while I was across the street. I stopped and let this go on for a few minutes, with no response from the owner. I walked across the street, dropped to my knees in front of the dog. "Face to face', the barking continued. I grabbed his collar, twisted it tight, and let out the big bark while we were nose to nose. When I let go the dog it ran off, whimpering all the way. It was an inside dog after that. bk