Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between a programming language and a scripting language? [duplicate]

Tags:

scripting

Possible Duplicates:
What’s the difference between a “script” and an “application”?
When is a language considered a scripting language?

  1. What is the difference between a web application core language and a web scripting language? What is exact use of a web scripting language like Python?

  2. When we use a scripting language like Python with web application programming languages like Java or .NET, can the web application compiler understand the scripting language code and compile the same?

  3. Is it possible to write a totally new web application by using a scripting language like Python?

like image 934
user417359 Avatar asked Dec 02 '22 05:12

user417359


2 Answers

1. There is no difference. The distinction between “programming language” and “scripting language” is antiquated, and it was never really well-defined. It used to be vaguely like this: scripting languages tend to be interpreted rather than compiled, and people tended to write smaller pieces of codes (“scripts”) in them. Nowadays, however, the distinction is not useful anymore, and we call C# and Python both programming languages.

2. A Java or C# compiler, by definition, compiles Java and C#, respectively. Such a compiler cannot, in general, also compile code written in another programming language such as Python or JavaScript.

3. Yes, it is possible to write web applications in Python — in fact, it’s the more traditional approach. Many Google web apps (e.g. Google Docs) are written in Python. MediaWiki (used by Wikipedia) is written in PHP, and LiveJournal is written in Perl. These three programming languages are very similar (certainly compared to Java and C#). The use of compiled, statically-typed, VM-based languages (Java and C#) for writing web applications is a more recent development.

like image 160
Timwi Avatar answered Dec 04 '22 05:12

Timwi


The main difference is that scripting languages tend to be used for specific purposes, that is, they tend to have a restrictive domain, take for instance JavaScript for browser scripting, likewise, many DB's include some sort of scripting language for programming DB specific tasks.

Programming languages, as a denomination, tend to refer to general purpose programming languages, one good example of this is Java, which can be used for developing many different kinds of applications from mobile to enterprise apps.

like image 31
Jose Diaz Avatar answered Dec 04 '22 03:12

Jose Diaz