I'm going to get revenge on a coworker
What type of revenge? What did this co-worker do?
I've been with the company longer than he has and now i'm getting passed over for his job
It isn't nice to hold grudges against someone. It is bad to take revenge on another person. If you are having problems with this person you should talk to your boss about it and let them help you.
He sucks and i'm going to do it.
Imagine what you could accomplish if you ignored this guy and instead focused on yourself. Think about why you were passed up for the job and make the next steps to ensure a better future for YOU. Holding a grudge is just going to see you stuck in place with no improvements.