dogs are also very dangerous around me, people dont even build proper fences, so the dogs can come out, and agressively bark. getting a weapon is a good idea, if it is legal in your contry. dont risk yourself.
Yes you definitely need a weapon if a dog is going to aggressively bark at you. A bit like how if a youth shouts at you in the street, you should shoot them.