Many people never even attempt to train their dogs to address bad behavior because they dont understand that dogs speak a different language. Shock collars are good if used properly because they help you communicate in a language the dog can understand.
if your dog could speak English, it would say "Oh, I had no idea that I wasn't supposed to bark at people aggressively while out on a walk. Thank you for using this tool to help me understand the correct behavior. "