:::Note: I’m not a professional trainer, I have a degree in psychology and im a teacher; a dog is like a 2-4 year old. Every dog is different though, maybe I’ve just gotten lucky, but what I’ve been doing has been working for me; maybe it will for you.:::
LOL, not luck... good common sense. We do basic training to get solid responses in controlled environments, which gives a good base for expanding it to other situations.
Like eeeefarm, I don't thing animal aggressive dogs need to socialize with strange dogs. I keep them separated. For the unexpected, working at home on basic commands (Leave It!, "look at me" to focus on you and understand the other dog is off limits, solid 100 percent down-stay) can help you avoid your dog getting revved enough to bite. That means you have to stay on top of things, change directions if necessary, and be firm and loud in asking others to not approach with their dog.
Training is wonderful bonding, and it exercises their brains.