1.
Do you trust tech articles like "Learn these 5 languages in 20xx because this statistics says these are rising, and SO dev survey also supports it. " ? I followed it for some time, and learnt Python and
Java. Why ? Because they are constantly in these lists. And in my company, initially they taught us Python and bash for some scripting work we've to do. Plus the dev work here is done in Java. I'm not in dev, want to go there, hence asking the question. I have done some small projects in Python (tic-tac-toe, some from Al Sweigart's book), and one particularly nasty GUI project where I made an interface like that they used in our snack shop. On project side... I'm weak. I focussed more on data structures and algo problems. I am certified in
OCAJP (thank you Jeanne, Scott, Kathy Sierra, Bert Bates, and Elisabeth Robson), because they said interviewers care about it. And two people I know switched from non-dev role to dev based upon that.
2.
Do you look for career paths ? Like if you there's demand for front-end, then HTML, CSS, JS and so. I am very new to IT. Undergrad was in electrical. My friends say, front-end means UI/UX programming. I tried to do so in Python, and Java. Didn't like that. Still it is better than what I do now.
3.
Do you go after your interest ? This is very vague. To someone who is just in IT, after you hit a plateau in one language, others seem good. The exception is JavaScript. My sister, who is a dev, says Go is a nice language. My friend says Scala. The prof who taught me C (sole language I learnt then) in college said "It better be a functional one. That'll broaden your horizon." I searched that and here they said, why not go with Haskell. It is a pure FP language. Time went by, and now articles in 1 say, Haskell's time is getting over. In case of FP, anyway, what after Java ? Kotlin (Google, Android) ?
4.
Or is it like ? You never know enough Java (or any other language). You know the core parts. Okay, go for
servlets, JSPs. Here too, when asked for advice, I hear, "Leave servlets, JSPs and so.". Jump to Spring Boot. Nobody uses the former.
5.
Lastly, are those who say "Why learn another language?. Two are enough." Just do LeetCode/Hackerrank grind. I say the grind part is good, but not the former.
As you can see, I am thoroughly confused. Maybe if I had a CS background in college, I would've known more CS/IT people and hence known better. But I don't have. Almost everyone I know from college went to electrical jobs as a sales person, and I know I am not one.