Dogs communicate 5 different things with their barks. They shouldn't be punished for trying to tell you or another dog something.
December 2016 - In her excellent book, Barking: The Sound of a Language (Dogwise Publishing), Norwegian trainer Turid Rugaas points out that people often think dogs bark as an act of aggression or to prove their dominance, or simply to annoy people. But while barking most certainly can get on peoples nerves, dogs dont bark to strut their stuff or exhibit swagger. Like us, they vocalize to express something a warning, an emotion, a desire, happiness even.