Shouting at your dog when it is behaving badly is not going to correct the dog's bad behaviour and you are proclaiming to to all about you that you have not been training your dog properly or having the dog professionally trained.
At an early stage in their training your dog needs to learn when it over steps the limit of its acceptable behaviour. This also applies outside the home so that your dog does not become a public nuisance. This means that your dogs training should begin inside the home so as your dog does not become confused. If you are not a new dog owner you will probably be aware of this. If you are a new owner you will be well advised to obtain details of some dog trainers. One to one training would be ideal, or if this is too expensive you should be able to find trainers who hold group sessions which you could join. Your local Vet may be able to recommend some trainers which you could contact. An alternative is to check on the Internet where you will be able to find suitable courses.
An essential part of training is learning your pet dog to walk in public without tugging at the leash. Your pet should be trained to walk by your side without making the leash go taunt. Do the training in your own backyard before venturing out in public with your dog. Start walking with the leash loose. Each time the leash becomes taunt immediately stop walking, turn round and walk in the opposite direction. Do not shout or speak to you dog while carrying out this procedure. Continue to carryout this procedure and eventually your dog will realise that it will not arrive at the intended destination until it stops pulling on the leash. There are of course many more training tips to be learned which are beyond the scope of this article.
Your dog continually barking will disturb your neighbors, at the same time barking is your pet dogs normal means of communication.There will be little point in you continually shouting at your dog which will only serve to increase your neighbors annoyance and it will also cause confusion to your dog. There is usually a good reason why dogs bark. A dog which receives little attention from their owner or is not adequately fed and watered, will start barking frequently. It is essential that you do not suppress the dog completely from barking as there may well be occasions such as if trespassers or potential burglars are on on your property to which your dog would not react.
You should by now realise the importance that your dog should receive proper training. You will be able to learn from a professional dog trainer of ways to ensure that your dog will respond to you by you praising your dog at the right time both verbally and by giving your pet treats as a reward for its good behaviour. Also how to ensure your dog stops it's undesirable behaviour.
Your dog needs to receive the right kind of attention and be properly trained which will be beneficial to you, as well as the dog and to your neighbors. It should also be born in mind when you are selecting a dog that you cannot expect any dog to behave contrary to it's breed. Therefore carefully study the characteristics of the breed of the dog you are interested in acquiring before taking ownership. This will save you a lot of problems when training your new pet dog and also with your neighbors.