r/code • u/maherharp • Jan 12 '21
Which Programming Language Should I Learn?
Hello, I am a 14 year old with a passion for computer science and programming. I am having a hard time trying to pick a language to fully know and not get into my way of everything else that I am doing. Here is my dilemma. So, I want to learn C++ because I love how the language can be used for almost everything and being efficient with it. It also helps me with USACO and robotics. But, I love Python for its simplicity and data structures. Also, I want to be a software engineer when I grew up, so I know Python will help me a lot for that. My question is, Should I focus on C++ because of the benefits I have in the present, or Python because of my future profession and projects?
3
u/4abc377878_ Jan 12 '21
C++ was the first language i learned and ever since all the other languages come naturally, especially Python since it’s so much more simple and easy to write. plus C++ also gives a good understanding of data structures which is very helpful for a future in CS
2
Jan 12 '21
They will both have a lot of future benefits. If it were me, I would do C++ first but I think most people would do python.
2
u/Markenbier Jan 14 '21
Glad to see young people getting into this. When I started at the same age, I learned c#. It's more comfortable than c++ at some point. C++ is more versatile especially at the hardware end. If this interests you it's a great idea and you should learn it!
1
Jan 12 '21
You should write a C++ application that interprets python lol best of both worlds!
But seriously, if you really learn C++, learn the fundamentals of programming, data structures and some low level stuff (mem management and architecture) then you can go to any language you want with ease.
Make sure you focus on the ideas of programming, not just how to write a program in whatever language you're writing in currently, since every language follows the same priniciples (give or take). You have conditional statements, code flow, variables, data types, structures, arrays, etc. Things like these are carried between language so understanding what they are fundamentally is more important than the language you choose.
My suggestion for learning anything is to do it with something you are actually interested in. If you love video games, for example, learn how to program a video game in any language you want. That will keep you motivated to keep at it until you reach your ultimate goal.
1
u/Beneficial_Bottle996 Jan 22 '21
I think if you are a beginner you should do python and try a few stuff and once you are ready go ahead for c++
0
u/Poddster Jan 12 '21
It basically doesn't matter. Pick any. Do python, you'll probably find it more generally useful as it's often quicker to program something in Python than the equivalent C++ program.
8
u/Big_Green_Mantis Jan 12 '21
Since you're 14 you'll have plenty of time to learn both. But I would start with c++ because I feel like is one of the best languages to learn the basics of code.