You can learn any programming language easily

You can learn any programming language easily

Not kidding, really Yes! Let's see how?

Let's understand this via a story.

Consider you've got Genie as a friend who can make your wishes come true.

But you need a language to speak and explain to him what you need.

You're explaining to him what you need in a particular language. For example, you asked him to solve a problem for you. The problem is simple which is addition. You gave 2 numbers, 20 & 30 to the genie and asked him the addition two numbers.

Genie understood your language and gave you the answer as 50.

When you compare the situation with a programming language, here Genie is the Compiler.

The same you is you. The language spoken to the compiler (Genie) differs. It is the programming language of your taste. maybe C, C++ or Java.

When you tell that you want the addition of 2 numbers to a compiler, It'll give you an answer but the way of expressing or language differs.

Put in simple words, the addition operation in all programming languages is the same. The way it is told to the compiler differs. The logic is the same for all compilers.

But the language used to do the operation differs. The same will apply to all other arithmetic operations and concepts like for, while loops and conditional operators are the same, but syntax (i.e Language) may differ.

So when the logic is learned, you can apply it in all languages.

In this way, you can understand how all languages are working but syntax and way of telling differs. By understanding this, When you want to solve a problem in a programming language you don't know, just search for syntax in google. Because now you know logic and with help of syntax you can solve the problem easily.

Point to remember - Logic is the same, but language differs.

Exception cases

This is exceptional for libraries, packages, datatypes and data structures in a certain language. If we pick C and its built-in libraries it'll work only in C and its compiler. Same for data types where python has lists, dictionaries etc., but C does not have this. Python and Java are object-oriented whereas C is not. Also, compilers and interpreters work differently. Hence coding standards and indentation change between each other.

By learning like this one should know the differences between compilers and languages, do's and don't etc.,

If you have a good idea of what I'm sharing, then give it a try. Otherwise, this would end up in a mess confusing everything. Learning should be clear and learners should know what they're doing.

I think I've covered pretty much in this article to see the programming languages from a different perspective.

Thank you for reading to the end and as I say, comments are always welcome in my articles.