DEV Community

Pranjal Verma
Pranjal Verma

Posted on

JAVA vs C++ vs C ?

Hello my gorgeous friends, for past few weeks I was thinking to learn a programming language (for job opportunity) so tell me guys what do you think. Which language should I go with.

Top comments (5)

Collapse
 
pentacular profile image
pentacular

The language is not very important -- the hard part is learning to program.

So, my recommendation is to learn the easiest language with the most resources available to you.

Having learned to program, picking up a second language is not too hard, and it gets easier from there.

Collapse
 
pvcodes profile image
Pranjal Verma

Have u any good resource for learning C++ DS and algo

Collapse
 
pentacular profile image
pentacular

Hmm. It's been a while, so I'm not sure what's good introductory material these days.

teachyourselfcs.com/ looks like a reasonable overview -- "The Structure and Interpretation of Computer Programs" is a classic, and "The Algorithm Design Manual" looks reasonable from the contents pages.

Collapse
 
ahferroin7 profile image
Austin S. Hemmelgarn

Unless you have a specific goal in mind, I wouldn't go with any of the three you suggest. Java is questionably designed and has serious efficiency issues that make it impractical whenever real performance matters, C++ is monstrously bloated with not one, not two, but three turing complete components (the core language, the templating library that's part of the standard library, and the preprocessor) and has numerous limitations in the standard library that make it challenging to use efficiently and suffers most of the same issues C does, and C is far too low level for most people to easily understand as well as being very easy to write dangerous code in.

My suggestion would be to look at Golang, Python, or Rust if you want something 'mainstream', or possibly Lua or Elixir if you aren't worried about immediate usability for a job or similar. All of them are reasonably easy to learn and all are also easier to work with outside of just learning than any of Java, C++ or C.

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

Why not follow insights.stackoverflow.com/survey/... ?

I think Golang is quite popular, otherwise Java and JVM ecosystem is still nice.