Monday 29 August 2016

Let's know what are the difference between Programming Language & Scripting Language ?

There is a huge confusion among the beginners between Programming Language & Scripting Language. That's why I am going to share with you guys the proper concepts of these so that you can understand it easily.

Before knowing this let's first understand what is Compilation & Interpretation of a program.

To understand this please take a look at the below picture:

Compiled Vs Interpreted

  • Programming Languages(Compiled Languages)
As we know computers do not actually understand the code we write. We need need to translate our human-readable code to machine-readable code. Our code need to be translated into bits and bytes that can be executed by computers. This translation process is called Compilation. Languages that require compilation are called compiled languages. C,C++ and JAVA are compiled languages.

  • Scripting Languages(Interpreted Languages)
And In other hand languages that not require compilation are called scripting languages. PHP,Perl,Python and Ruby are scripting languages. Those languages rely on  our source-code all the time. Scripting languages didn't have compiler or a compilation process. Those languages used interpreters to translate our source-code to machine executable code. This translation process is called Interpretation.

 Programming Vs Scripting Analysis

  • Compiled Languages Vs Scripting Languages
  1. The main difference between compiled languages and scripting languages is Scripting Languages are not compiled and Programming Languages are compiled its that simple.
  2. Compiled programs run faster then interpreted programs because they are first converted native machine code.
  3. Compilers  read and analyze the code only once and report the errors collectively that the code might have,but the interpreter will read and analyze the code statements each time it meets them and halts at that very instance if there is some error.

If you have any doubt while understanding this concept please do comment below I will definitely reply. 

No comments:

Post a Comment