I am attempting to defeat all of the bosses, to beat Terraria. This includes hard mode. 

Who are the main bosses, throughout both regular and hard mode? Is there a particular preference I should take in defeating them?

It would definitely be worth considering multiple platforms, and the optional bosses, to make the answer more useful to other users.