Ask HN: Should I learn C or C++?
I am going to college in the US in September as an international student but my school year finished in January. I have about 8 more months of doing nothing on my hands and had thought about learning C or C++ just because I have always heard that they give you a good base knowledge of how other languages work under the hood. I would say I'm fluent in Java, Swift and Python.
Do you have any recommendations for which one I should tackle (or neither)? If you had a good resource to help me learn as someone who isn't a beginner, that would also be great too. Thanks.
12 comments
[ 5.3 ms ] story [ 41.1 ms ] threadStill, learning C will make it easier to learn C++, because C is far simpler and in order to understand C++ you’ll have to master C’s concepts anyway.
People burn out on coding faster than they think, and you have a lifetime to do it in your career. You’ll probably never get 8 months of free time again, though.
The simple truth is that unless you truly specialize, your software developer career is going to be a long string of learning things to solve a problem.
Look up the language you'll be studying, pick one that sounds neat, and grab the nearest tutorial that includes the words "For beginners" in the title.
If you know a few other languages it shouldn't take 8 months to become at least proficient at C, so you might then try another language that really stretches your brain. Something like Haskell or even a Lisp. After a language that gets closer to the hardware like C try something very abstract and high level. That's why I mention Lisp above. Reading SICP [0] made me realise just how much of a logical system you can synthesize from almost nothing.
[0] Structure and Interpretation of Computer Programs https://en.wikipedia.org/wiki/Structure_and_Interpretation_o...