The past revealed in Snape's memories, involving James and Lily and what the story wanted to convey, in my opinion, is the worst part and shows the author's limitations in trying to develop a past involving adult and psychologically complex themes in a story that was initially aimed at children.
We have a complete context of Snape's childhood, the terrible family, the meeting with Lily, going to Hogwarts, the rejection from the school (without reason, besides being poor and ugly), "He knew a lot about the Dark Arts," but did he initially do anything to anyone with that knowledge? Did I miss something? The heavy bullying and cruel humiliations he suffered gratuitously, "But he hung out with bad people." Of course! They were the only people who offered him real defense (which generates the main criticism of Hogwarts, which is dividing students into archetypes, and that the AUTHOR HERSELF breaks her own rules in the story) and, wasn't that the same thing Lupin did, being indifferent to James and Sirius for fear of being alone? He himself says so. "But he had Lily." The book makes it clear and obvious that she couldn't always be with him and she couldn't prevent the attacks, and it gets to the most terrible point, which was forgotten within the story, which was the trap Sirius set for Snape, involving Lupin the Werewolf almost killing him, and to make matters worse, Dumbledore silences Snape and doesn't punish Sirius. "Ah, but he was just curious." Yes, that must really be, for someone, an excellent justification. And it all culminates in the breakdown of his friendship with Lily. And during his time as a Death Eater, it's simply shown quickly, and you can only imagine what he did, the only thing reported being his indifference to what was happening (and yet, he has that conversation with Dumbledore, worried about his soul when he has to kill the old man, which should show his hypocrisy) and delivering the incomplete prophecy to Voldemort, which led to Lily's death. And as a teacher, he is cruel and humiliates students, which is terrible, but again, it's often treated as a joke. Besides, Snape didn't want to be there; he was forced by Dumbledore, the same guy who didn't consider his pain. And in the end, they treat his obsessive love for Lily as something beautiful. In my opinion, Snape is the second best character in the story, behind Dumbledore, who, yes, had both sides addressed, ending with: "You manipulated everyone! You helped defeat evil, but you lost much of your morality."
And for me, James and Lily, these are the two most poorly written characters in history, requiring a lot of good faith to buy into the idea, but for me, it's just not working. And don't even try to tell me about J.K. Rowling's comments on websites and interviews trying to fix these problems, because that doesn't hold water. If she wanted to include these ideas and didn't know how, she could have just created notes, letters, diaries, anything like that, to convey them.
James is written and shown exclusively in the past, where he's just a rich and popular boy, acting like a disgusting, vile, and cynical person with everything he did and continues to do to Snape, even after being with Lily. "Then he improved and became a great man," said his best friends and the headmaster who adored him. And there's nothing more to it than that! "He sacrifices himself to give Lily and Harry time." Well, that's extreme. Where his real redemption was sacrificing himself for his family. There was a serious lack of context, something concrete about the character.
Lily, poor thing, is just a plot device, just like James was used, but for him it was worse. Seriously, a character always described in the best way, as a saint who forgives, has infinite empathy and all that, so easily abandoned the friend she's known since she was 9? "But that insult is the worst possible." And she wouldn't understand the situation he was in and why he did that? "But it's because of his friends." We've already talked about this. I fought with many friends in school, but none of them distanced themselves from me, and none of them were described as saints. So, she's an extremely empty character who only had to make the decisions she made because the book had to make sense.
And I'm not an idiot, I know very well what the story wanted to convey with these characters. But if the story has enormous flaws and the author herself needs to come out and explain them, that shows the flaw in the story, in addition to her having made several retcons and subsequently, making decisions that made fans delete a book and cancel the movies.