

I don’t think it’s immature - I wish more people had that kind of motivation.
But you say you’re entering your 30s. I’d just like to remind you how long time you actually still have. I studied computer science myself and I had multiple friends at the university in their 40s. People do switch up their careers if they want it enough. It is possible.
There is nothing pointless about following your passions - in fact I’d say that is the only point of life. It’s the opposite of pointless.
Maybe you need to reframe it as not failure, but progress. See how you get better and closer, not how you didn’t reach the goal. It’s about the journey.