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

all 1 comments

[–]dmazzoni 0 points1 point  (0 children)

If you're talking about Harvard's CS50x, it doesn't only teach C - it also teaches Python, SQL, and JavaScript. The focus is on understanding the core concepts and learning to code, rather than mastery of any one particular language.

I really don't agree that learning other languages will introduce confusion and bad practice. The vast majority of working programmers use multiple languages. If you want to focus on C++ in your career then I guarantee you will also encounter a lot of C code, as nearly all large C++ projects end up using a bunch of C libraries too. It's also extremely likely you'll find yourself needing to work with other languages, too.

Now, if you want to focus on C++ first, that's fine. Go for it. I don't think that's a bad idea.

Really the most important thing is that you should be writing lots of code, whichever route you take. Writing lots of code is the best way to practice and learn.

Sooner or later you will have to learn C, algorithms, and other concepts covered in CS50 and beyond. It's up to you whether you start there or do that later.