Develop courage in child to refrain from barking dogs

I am writing this article for the happening commenced yesterday with my eight years old son where a barking dog chased to my son. I was sitting in my room and my son was playing with his friend in his friend's house adjscent to my house. I suddenly startled as I listened cry out to howl of my son from outside. I ran towards the door and found that my son is standing behind the net door of the room of his friend and a dog is barking from front of the door at him. I picked a rod, occanisally lying near me at our door and rushed towards that dirty dog but it ran away on seeing me. I go near to my son and brought my son gaurding him, but this instance compelled me to think to develop courage in child in their younger age to refrain from barking dogs. At my home my wife and my mother both came to know about the instance and get frightened. My mother is of old openions and advised to arrange to give some bread/chappatti feedstock to the dogs those will be seen near our street through hands of my son on every saturday (an ansestrial belief of old openion people here in India that then dogs become friendly and will not bark on the provider) and according to my mother , then they will not bark/attack on my son. I accepted her advice and make my mind to follow her advice, but my mind was working more on that situation.
This instance recalls me back to remember same type of incidents I faced in my young age. At that time when I was of 6-7 years old and some street dogs troubled and makes me frightened on barking and chasing me; my grandfather suggested me to always walk with carrying stick when use to go outside at that street where those dogs (those dogs habbitual to bark and chase me in my younger age) are staying or roams. I followed my grandfather's advice and really was cared by that stick from those street dirty dogs.
Now, in case of my son I am going to adopt the advice I got from grandfather and similarly I provided a long stick for my son to use to carry with him untill the fear of those barking dogs is emmited from his mind, whereas simentenously I manage to provide suitable feeds like bread/chappatti for these street dogs on every saturday as adviced by my mother.
I hope the fear of such barking dogs will be emitted from mind of my son because carring stick habit was experienced by me on myself also in my younger age and has shown positive results whereas feeding those street dogs may make them friendly with my son so that they will behave friendly with my son and should not bark or chase my son.