What should I do? I dated a friend and had a messy breakup and my life was almost ruined.
What made you have a messy breakup?
He's a sucky, immature person.
It is good that you broke up if it was not working out. Continuing a relationship that was not working out would be harmful to both of you.
We broke up because of some misunderstandings
It's hard to end a relationship with someone that was a good friend. You should reach out and try to talk to the person about the misunderstanding. Clearing up the matter can help you to move on and heal from the drama of the break up.