“Snape hated Harry because Harry looked like James.”
Okay. Let’s dig into this. Because it’s not a matter of, “Your dad bullied me and I’m getting back at him by being hateful to you.” It’s more complex and insidious than that.
When Snape knew James as a teenager, Snape was “twitchy, like a spider.” He stuttered. He knew he could be under attack at any moment, and he was powerless: poor, with no social clout, unattractive, generally disliked.
After James died, Snape was trapped back in the place where he’d been bullied, trying to be an authority figure to kids only a few years younger than him who’d watched him being bullied and assaulted.
It must have been incredibly hard, but he did it. When we see him ten years later, he no longer stutters. He can keep a classroom quiet with a soft voice. He’s in control.
Then, suddenly, there’s this face in the crowd again, the one his instincts associate with danger. He has to fight the automatic response to take cover or defend himself when he passes Harry in the halls. He’s twitchy again, his nerves are raw, it’s uncomfortable all the time.
And then he gets face-to-face with him in class. And it’s like the clock has turned back and he’s a teenager again. Only, he’s managed to take all the things he’s fought so hard for with him: he doesn’t stutter, he can clearly say all the insults he ever wanted to; he’s the one with the power, with social standing behind him.
And so all the things he would’ve liked to say to James come pouring out: the carefully created insults, the disdain. And the laughter of the Slytherins feeds the dark places in his soul.
And then Harry leaves, and he hates himself. What is wrong with him? He knows this isn’t James, it’s not helping anything to treat him like this. He’s going to stop. He will just ignore the boy and get on with his life.
But it never lasts. His control slips, and he says one thing, and then it snowballs, and he’s lost all that hard-won control he’s fought for all his life. He’s acting like a teenager again, and he hates it. He despises himself for it.
But he won’t let anyone know his weakness. Better that everyone thinks he is petty enough to loathe the boy for no good reason than that they know how his control crumbles at a touch. So he sneers and insults him to other teachers and gets on with his self-loathing. He’s used to it, after all.
And he does his best to protect the boy, to keep him alive despite all the idiot does to undo his efforts. But every time, he ends up screaming at the kid like he’s crazy. Maybe he is crazy. Normal people don’t feel out of control like this, for no reason. Just because a kid looks like his dad.
So, yes. Harry looks like James, and Snape hates him for it.