Chaosmancer
Legend
I did a spear-based Ranger before. Of course, I can't say it was all that optimal but my party wasn't constantly thinking "Wha-? That's a d6 where it could've been a d8! And what do you think you're doing on the front lines missy!? Get back in the back ranks and make us a hunter's mark where you belong!"
Our campaign at the time wasn't a whole gritty meat grinder so a few suboptimal playstyles were fine. Again, wouldn't recommend it for a game where only the elite survive, but I'm absolutely certain most games aren't like that anyways.
I honestly feel spears are too weak, so I made a "battle spear" that was a d8/d10 weapon.
Mechanically identical to a longsword or battleaxe, but allows the image of some of the awesome spear fighters I've seen.