For me there wasn't one single "thing" that got me interested in coding, but there's no doubt that the book The Soul of a New Machine by Tracy Kidder played a key role.
It’s the movie Hackers from 1995! I’m not joking. That’s the movie that made me fall in love with computers, coding, and hacking. Many people consider it cheesy, but I don’t care. I watched it probably twenty times, if not more. I watch it any time I find myself feeling down and unmotivated. It reminds me of those first days, that initial spark. Just like you would reminisce about a beautiful beginning of a past love affair when you feel lonely and unloved.
Yes, "Hackers" is cheesy as hell, but it's simultaneously a great movie in a certain sense. Like the author of TFA, I consider it one of my "comfort movies". I've probably watched it 20+ times, and can always default to watching that when I'm feeling down, strung-out, overwhelmed, etc. Doing so always puts me in a better mood. A few other movies that fall into the same category for me include "Antitrust", "The Matrix", "The Social Network", "War Games", "Tron: Legacy", "Rad", and maybe one or two others.