Friday, 9 November 2018

Programming Languages vs Scripts

What’s the difference between Scripting and Programming Languages?



Harsh Truth is Basically, all scripting languages are programming languages. 

So HTML is NOT Programming Language is Wrong statement and so my Clickbait thumbnail I posted above.

The theoretical difference between the two is that scripting languages do not require the compilation step and are rather interpreted. For example, normally, a C program needs to be compiled before running whereas normally, a scripting language like JavaScript or PHP need not be compiled.



While classifying a language as scripting language or programming language, the environment on which it would execute must be taken into consideration. The reason why this is important is that we can design an interpreter for C language and use it as a scripting language, and at the same time, we can design a compiler for JavaScript and use it as a programming language. A live example of this is V8, the JavaScript engine of Google Chrome, which compiles the JavaScript code into machine code, rather than interpreting it.

Examples

Some scripting languages traditionally used without an explicit compilation step are JavaScript, PHP, Python, VBScript.


Some programming languages traditionally used with an explicit compilation step are C, C++.


Applications of Scripting Languages :

1. To automate certain tasks in a program

2. Extracting information from a data set

3. Less code intensive as compared to traditional programming languages


Applications of Programming Languages :

1. They typically run inside a parent program like scripts

2. More compatible while integrating code with mathematical models

3. Languages like JAVA can be compiled and then used on any platform

Here is link to stackoverflow thread for this very same topic

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.


Thank you for visiting!



Tags
script, memes, meme, html, css, php, js, node.js, node js, javascript, webdeveloper, webdevelopement, website, java, c, c++, c#, csharp, blog, blogger, article, essay, school, project,

No comments:

Post a Comment