Back in the early 2000s when I was finishing my Software Engineer BSc degree I saw the choice of becoming a "generalist" vs becoming a "specialist". I actually liked EVERYTHING technology wise: From Neural Networks to Game development (graphics with OpenGL) to algorithms, Web development, to Java JNI, assembler and whatnot. I couldn't see myself focusing in one thing.
Fast forward to 2025, I'm 44 years old and have been 24 years in the industry. In the last 5 years I've had 3 jobs: One, helping a startup move form a non-scalable monolith system (ruby) to a very scalable microservices one. I was CTO of a crypto-exchange company, building ECS/nodejs based microservices and then an App (React Native). And right now I am helping some young guys in a startup doing AI based Tax reconciliation (helping exporting companies recover their VAT).
In my opinion, right now is the BEST moment to be a developer. Coding with Cursor is magic. Implementing an API in python with FastAPI is so freaking easy and quick. I don't have to worry about recalling a lot of details, but mainly think on problem solving.
I have the hypothesis that the people that are struggling are the "specialists". Suddenly with AI it doesn't matter that you know the in and outs of Java, Hybernate and the whole stack. There's more value in solving problems. I am happy that I chose the "generalist" path. I think AI will reduce the demand the "specialist" skillset.