I view Snape as being like J. K. Simmons’ character in Whiplash. He’s hard on the kids because he’s challenging them to do better, to be better wizards, because they are going to need to be if they’re going to win. And he shows favoritism to the Slytherins so they don’t try so hard, and they end up with good grades…