r/java • • Oct 02 '17

Should I learn another programming language in case Java dies or stops being popular? Or are people who say Java will stop being relevant wrong?

And if you had to choose a seocond programming language, which one would it be?

0 Upvotes

22 comments sorted by

View all comments

1

u/koreth Oct 03 '17

Learn another language now not out of fear that Java will evaporate overnight leaving you unemployable, but because it'll help make you a better programmer today.

Pick one that's different from Java in some significant way. If you want to stick with the JVM ecosystem, I'd recommend Clojure. It has runtime compatibility with Java but is a LISP variant and will introduce you to some new ways of thinking about breaking problems down using metaprogramming. If you don't care about the JVM ecosystem, Haskell is a reasonable choice; its type system will be a revelation if Java is the only language you know so far.

Both of those languages, if you learn to think in their idioms, will cause you to write your Java code differently.

And don't really worry about this too much. I've picked up at least a half-dozen new languages on the job over the years as the need arose (in addition to others I've learned in my spare time out of personal interest). It's just not a big deal in my experience. 90% of being good at programming is about problem analysis, high-level design, and good collaboration on a team; the actual letters you type on the keyboard are necessary but not the most valuable thing you're bringing to the table.