Posts: 47
Threads: 5
Joined: Jul 2014
Reputation:
0
What are the differences between a scripting language and a programming language? I have viewed this topic on other forums but I want to see what the people on here have to say on this.
Posts: 584
Threads: 51
Joined: Jan 2014
Reputation:
0
Scripting languages ARE (a subset of) programming languages.
Posts: 2,187
Threads: 81
Joined: Aug 2011
Reputation:
0
Programming languages need to be compiled before they can be run. Scripting languages are programming languages which usually can directly be executed and their results can be viewed right away. Examples are - programming languages (C++, C, PAWN) & scripting languages. (JS, VBS)
Posts: 782
Threads: 25
Joined: Jun 2014
Reputation:
0
The main difference is in how they are used.
Scripts are typically quick and dirty. Say, a bash script to make your life easier. Whereas a 'programming' language is meant to be much more thought out and deliberate.
That's not to say that you can't do that with a 'scripting' language. You can make full-blown GUI applications (or web app) with python as well as C++. The thing with 'programming' languages is that they are usually faster, and offer more control over low-level things if you want.
'programming' languages are typically used in scenarios where the code will be around for a long time. If you want to write something quickly and then never use it again, 'scripting' languages are what you want.
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
PAWN is a scripting language that compiles to amx bytecode. That bytecode is then interpreted by the samp server, and is not running on its own. So yep, this is scripting just like I already posted.
Posts: 584
Threads: 51
Joined: Jan 2014
Reputation:
0
This thread is smoking and is about to go on fire
aka an argument is going to happen..
So, rather than some people voice their (incorrect) opinion, I'm going to voice Wikipedia's take on both of them:
A scripting language or script language is a programming language that supports scripts, programs written for a special run-time environment that can interpret (rather than compile) and automate the execution of tasks that could alternatively be executed one-by-one by a human operator. Environments that can be automated through scripting include software applications, web pages within a web browser, the shells of operating systems (OS), and embedded systems. A scripting language can be viewed as a domain-specific language for a particular environment; in the case of scripting an application, this is also known as an extension language. Scripting languages are also sometimes referred to as very high-level programming languages, as they operate at a high level of abstraction, or as control languages, particularly for job control languages on mainframes.
A programming language is a formal constructed language designed to communicate instructions to a machine, particularly a computer. Programming languages can be used to create programs to control the behavior of a machine or to express algorithms.