Summoner? Haven't tried it in 1.4 yet. But I use it as a "side class"
Melee? Close contact is not for me.
Ranged? Quite a good one, but tearing down an enemies health bar takes way too long in certain parts of the game.
Mage though, It's my favorite. Not only is it unique by using mana at cost, but it also comes in so many forms. Melee, Ranged, And Summoner only has a few different weapon styles, and at the end, Sword and Guns are most op. Mage though, you can vary from Magic Missiles and Water Bolts, to Razorblade Typhoons and Last Prisms. It also makes you feel really satisfied once you defeat a boss.
(Although Summoner Class Stardust Dragon and Nurse Box is great against Moon Lord, (Wait, this is 1.4... oh well...))