I first got into programming in high school when I took AP Computer Science. To be honest, I hated it and didn't pick up web development until several years after that experience. I thought programming sucked. I literally said multiple times, "I will never program. This is the worst!" I think there were two reasons for this: the programs I was writing were impractical combined with pressure to perform well in the class. It's tough teaching a beginning programming class because most start at the CLI. Although the CLI is great at helping students learn the basics of programming (e.g., loops, conditionals, OOP, etc.), it still left me wanting more. Back then, I was still at a loss as to how someone would write a GUI program, similar to the programs I used all of the time on a computer, not the CLI "junk" I was writing for class.
Nonetheless, I picked up web development on my own time and the experience has been incredible. I even developed a preference for the CLI in the practical productivity CLI tools afford a web developer (e.g., git, touch, mkdir, ssh, psql, etc.) And I must admit that basic programming skills that I learned in AP Comp Sci gave me a leg up in getting started, thereby making the path to writing practical stuff for the web a lot shorter.
I guess it's kind of vain for me to share my personal story here, but I bet others had a similar experience. If you took an intro programming class in HS or University and you hated it, give programming another shot. This time, you won't have to worry about a grade or writing shitty programs you don't care about. Start a project, get coding, and I think you'll fall in love.