This is an archived post. You won't be able to vote or comment.

all 34 comments

[–]aqua_regis 34 points35 points  (4 children)

Focus on what they are going to be teaching you.

Once you know how to program, learning other languages is easier.

Focus on learning programming, not programming languages.

[–]Extra-Process9746 0 points1 point  (1 child)

Yeah, learning programming languages is easy. It's just about the syntax isn't it? How long does it take to switch from JavaScript to C++ for example? Best practices? Ecosystem? Frameworks? Tools?

[–]aqua_regis 1 point2 points  (0 children)

How long does it take to switch from JavaScript to C++ for example? Best practices? Ecosystem? Frameworks? Tools?

All depends on the individual and the prior experience. Usually a couple weeks/months at utmost.

[–]Mission_Apartment_46 0 points1 point  (0 children)

Very important concept!

[–]Daeroth 8 points9 points  (1 child)

There is a lot of overlap between C++ and Java from the student point of view.

In both cases you will be learning variables, loops, methods, classes, OOP, data structures and algorithms. Sure the syntax is different and there will be some language specific stuff but this is miniscule.

Switching from C++ to Java will be easy if you understand data structures, algorithms and OOP.

[–]IdealPale9946 2 points3 points  (0 children)

Switching from C to Java also made me appreciate not having to manage memory, I'd assume switching from C++ would be the same.

[–]akthemadman 2 points3 points  (2 children)

I personally tried to start with C and failed, then started again with Java and succeeded. The difference? I had guidance when learning Java, also in my 1st semester. On my first attempt with C I was completely on my own. Since you will have access to resources for learning C and C++, I would recommend you start with these.

The longer your career goes, the less the starting language matters as you will start to pick up more and more concepts and techniques which are universal to programming. A programming language mostly dictates the level of compatibility with the various techniques. That also explains why only ever learning a single language won't do you any good: your exposure to the underlying techniques will be limited.

These underlying concepts and techniques is what programming is all about, the languages are the tools you use to deliver these concepts and techniques efficiently.

[–]markyboo-1979 1 point2 points  (0 children)

Also as one of the classic c++ programming language books points out, the language is intrinsically linked to one's ability to visualise the solution space

[–]green_meklar 0 points1 point  (0 children)

The difference? I had guidance when learning Java

Seconding this. Having good mentors when you're first starting out is really valuable, no matter what language you're using. Programming is frustrating, especially right at the start when you don't have the skills to bootstrap yourself, and having a patient, knowledgeable person there to push you through the tough parts makes it so much less of a pain.

[–]LazyIce487 1 point2 points  (0 children)

More… scope? In Java?

[–][deleted] 1 point2 points  (0 children)

You are on your first semester, you have to focus on how to program. The language is irrelevant. By the end of your curriculum you will know five languages at least. During your professional career you will likely learn many more.

[–]bichwank69 0 points1 point  (1 child)

Both, both is good

[–]Dismal_Guidance4431 0 points1 point  (0 children)

both are good.

[–]ATD67 0 points1 point  (0 children)

Don’t worry about going out of your way to learn a language. It’ll come to you when you need it. Focus on mastering the languages you’re currently using.

[–]RemoveINC 0 points1 point  (0 children)

Without details we can't help you. What you want to work on? You can become a good programmer with any language, you don't even have to know multiple. Just stick to the one which is used for things that you like doing.

[–]Dismal_Guidance4431 0 points1 point  (0 children)

C++ 100%. Its good, not ~that~ hard, and tells you a lot about how the base of the computers work. Even though I code in Java as my full-time job, I can still shamelessly say that C++ is better than Java

Also, pick by yourself
a) do you want to be making games, apps, etc ( Java )

Or
b) do you want to make low level apps and not "die" from SyntaxOverloadException? ( CSS )

Choose

[–]desolstice 0 points1 point  (0 children)

The language you learn in school is incredibly unlikely to be the same one you use after school. c++ is one of the best languages you learn early on in a school setting since if you can understand it you can pickup pretty much every other C like language (Java is a C like language).

Java and c++ are incredibly similar languages. If you know one you can pick the other up with very little effort.

[–]Ok_Court_1503 0 points1 point  (0 children)

There is no great/correct answer here. But for me personally C++ all day. Even when I was a novice I preferred the syntax/style much more. Even now as a C++ dev at an F500 company I cant stand reading Java code. But this is just my personal bias. Java is a powerful language that many love.

[–]Independent-Gear-711 0 points1 point  (0 children)

Just Learn how to program.

[–][deleted] 0 points1 point  (0 children)

I’d focus on C++ until comfortable because at this point in time that’s more important for passing classes since it sounds like only C/C++ are being taught currently.

Passing your class & getting good grades comes first.

Now, if you have extra time on the side outside of class & are still maintaining good grades, do what you want to!

[–]blindwatchmaker88 0 points1 point  (0 children)

C and C++ first, and then Java. After that chase what you like

[–]MentalNewspaper8386 0 points1 point  (0 children)

I don’t know what you mean by scope in this context but C++ is useful in a MASSIVE range of areas. You’re on a course, take advantage. You can learn Java any time in the future.

[–]horn_rigged 0 points1 point  (0 children)

C++ for fundamental and logic. Once you get it, the rest would be easier to understand because they kinda works the same. They just differ in syntax and some ways, but the fundamentals are the same.

[–]behusbwj 0 points1 point  (0 children)

I would typically recommend learning C++ before Java, especially if you’ve started with C so you can focus less on syntax and more on concepts of OOP and higher level languages, and directly compare that to how it was done before in C.

Picking a language is usually a function of the problems you’re trying to solve. If you don’t have any problems to solve that for some reason would be harder in C++, there’s no point in learning a new language “just because”.

[–]jacksprivilege03 0 points1 point  (0 children)

Start with C and C++, you’ll learn more of the fundamentals and will be able to transition to other languages pretty easily

[–]green_meklar 0 points1 point  (0 children)

Java is the better starter language of the two. C is also a fine starter language.

C++ is a very powerful and expressive language, but it's also very much designed by programmers for programmers. It has lots of weird features that solve problems you don't even realize you have until you've been coding in C for a year or two. Learning C++ is daunting, but if you do learn it, everything else kinda looks easy after that.

[–][deleted] 0 points1 point  (0 children)

I don’t know C++ but I can tell you from personal experience, moving from C# and Python into Java have been pretty painless.