Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialmary battlebury
527 PointsShould I learn C++ first or Java?
Ive read different opinions on this, so would appreciate the feedback!
Basically I have an okay grasp on HTML + CSS,
I am studying design (visual communications) in college so tbh learnt sufficient bits here and there for when we had a web design module.
However now I have some spare time would love to get a proper grasp, so what would be the overall consensus on this re: c++ or java ?
3 Answers
Jacob Bergdahl
29,119 PointsIt's not quite that simple, Mary. All programming languages exist for a reason; one isn't necessarily better than the other. It depends on what you want to do. Out of those two options, I'd recommend you to try Java, as it's easier to learn and there are courses for it here on Treehouse, while there are no courses in C++ here.
Simon Coates
28,694 Pointsif you've ruled out webier languages like PHP, python or other options like c#, I'd suggest java. I think it's a pretty good general purpose language with decent options for different kinds of use (android, web use, stand alone apps etc.). I think it's easier than c++, but that might just be me. I struggled with C++'s use of pointers. (a less constructive answer might be that it depends what brand of masochist you are - C++ and java obviously have a reputation for being harder than a lot of newer web languages). You might want to clarify what you want to make as it might be a factor.
Bruno Bandeira de Azevedo
25,374 PointsNeither. Go with Ruby or Python unless you have a strong reason for avoiding them, easier to learn and applicable everywhere. If there is no other choice, go with Java. There is a much higher chance you will struggle with C++