system
Given the following post, respond as if you're commenting on Reddit:
human
How good is it to tech switch?

So, here's the deal. My first job was in C++ where I worked with an app that handled RTP streaming. Funny stuff. Then I had to quit that job due to it not paying any money. Mostly because it was the only job in the area and they felt cocky .

Then I switched to a place that does PHP, and I'm doing web development for a while. I had to learn a lot of stuff while switching.

HTML/CSS, at least the basics. SQL(my job didn't involve interacting with database in any way, tho I knew it from college). Docker toolset, MVC, all of that. Though I am a quick learner when I need to.

I feel like I wasted almost two years doing something that wasn't exactly related to what I do now. And I don't think I'm gonna do PHP for the rest of my life. I think nobody wants to do it for the rest of their lives, let's be honest xD

How should I feel about tech switching? Does it 'enrich my portfolio', or does it show how unstable and good at nothing? Where's the line?

My friend told me that switching languages withing your field(backend) is okay and normal, but switching from backend to frontend or machine learning is another matter and should be a once in a lifetime change. What do you think?
gpt
Language switching happens all the time. People even get asked by their recruiter to learn a programming language in just a month. Programming languages are just tools and when you stick to one sector/area it will all be pretty much the same just with a different syntax. If you are backend you most likely even know a little front end and vice versa. As long as you stick with web dev i bet you will be just fine throughout your whole life.