This article presents my vision of things. I'm a deep lover of getting in a programming language, understanding in detail how it works behind the scenes and using it in the most clean and performing way as possible.
During the first two years of my developer career, I kept searching for the perfect programming language that was the most popular, had the best future and could easily do what I like, which is web development. I wasted so much time just looking at charts, blogs, Google trends, etc. I would switch too often between things like languages, frameworks, frontend, backend, devops and feel like I cannot accomplish anything. I also spent time learning things that I didn't actually enjoy, but was still doing it just because I read that it was trending and important to know as a web developer. I had a job that mainly used a specific programming language, which I then read online that it was dying, had no future.. that would make me crazy. Even if it was only one of a thousand articles, the single negative article would make me worry. The feeling of wasting time learning something that would be useless later.
Don't get me wrong, learning any language will still have its uses as you get general programming knowledge. But there are so many things that you can learn in a specific language like frameworks, libraries, new ways of doing things, etc. Even after years of using only the same language, you will still have stuff to learn.
As for frontend vs backend vs devops, also there you will have plenty to learn with just one of these.
Having a general idea of what the others working with you do can still be useful. For example, if you love designing, just having a quick idea on how frontend works with the backend can help. But don't spend too much time on that and focus on what you enjoy.
Don't listen to people telling you that you need to know everything or tons of things to be a real developer.
If you like being Full Stack or learning multiple programming languages, sure you can do that.
But if you're like me and have a preference for something like backend and one or two specific programming language. Focus on that, not only you will have more fun working but you will also learn quicker and be more motivated in general.
Stop doing only what's trending or what others think if you don't like that and do what you actually enjoy.
Don't worry too much about what will be more popular in years but think about the present.
I would love to hear what you guys think about this!