SJoy, it does sound like you’re trying to be responsible and I hope it was clear that I wasn’t accusing you. I just wanted to point out that a very similar situation could be read quite differently by the person on the other side of the fence!
Like Datamuse, I don’t really mind a dog barking to defend it’s own yard. It’s their instinct to do so, and it must be really confusing to many dogs who are punished for doing what to them seems like their job. But when a dog throws itself at a fence growling and slathering like it’s ready to tear your throat out, that’s another story…