How easily does knowledge of one language translate to other languages? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How easily does knowledge of one language translate to other languages?

For example, I'm learning C++. How much of the stuff I'm learning will tanslate to, say, Java or Python? I assume things like "if... else" , "while", and the like are similar across languages and it's largely a matter of learning new syntax. Correct or no? Just as importantly, what kinds of things don't translate between languages? Thanks in advance. I really like the community here!

27th Oct 2017, 2:36 AM
Matt Daugherty
Matt Daugherty - avatar
3 Answers
+ 3
I can't say for all languages, but I've learned lots of languages and concepts are identical assuming the language has it. Syntax is similar for most of them over the more basic concepts. For example, I don't know ruby or python, but I can read and understand the programs.
27th Oct 2017, 2:58 AM
John Wells
John Wells - avatar
+ 2
John summed it up perfectly. Obviously the C-based languages will feel more similar, such as C++, C#, and Java. As well, the different types of programming languages may or may not have the same things. However, logic is logic, so there is usually some means of translating that logic between the languages. For myself, since I learned the C languages first, I tend to lean toward the C-based languages and its syntax. When I use things like Python, although it all easily translates, I find the syntax of it horrid and don't much like using it; however, that's not to speak for its usefulness or how powerful it is, because it is.
27th Oct 2017, 3:35 AM
AgentSmith
+ 1
once you learn a programming language and understand basic concepts, like math operators, control loops etc, you can easily understand any language. The syntax, the keywords or the methods may be different, but that is not a problem. For example i had very good understanding of C++.When i jumped into java i found it easy enough to learn, and by writing more and more code i was able to reach a good level of knowing how to use it properly.
27th Oct 2017, 3:34 AM
Kostas Batz
Kostas Batz - avatar