If it starts to bark I turn my back to it. Its been my experience that the more you talk to it or yell at it, the more it barks because it thinks you are joining in.
This all the way. My husband yells when Honey is barking, and it never helps.
I'm sure somewhere this has floated around the forum but about a fifth of the way down the page is a series of cartoons that perfectly sum it up.
http://hyperboleandahalf.blogspot.com/2010/11/dogs-dont-understand-basic-concepts.html (They're the ones with the blue backgrounds)

