People who are really good at hurting people have often been hurt by people who are really good at hurting people. And sometimes these people use their negative experiences to excuse themselves for behaving badly.
Break the chain. Refuse to let your pain drive you hurt people.
Convert your hurt into compassion for yourself and others. Be the kind of person you wish was there for you when you needed it.