Programming and scripting
#1

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.
Reply
#2

Scripting languages ARE (a subset of) programming languages.
Reply
#3

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)
Reply
#4

NVM.
Reply
#5

Simply speaking, if you need another program or environment to run it, it is a scripting language. (like the samp server, webservers, python interpreter) If it compiles to something that runs on it own, its a programming language.
You wont find high programming languages that need no compiling, but some scripting languages might need to be compiled, and some others not.
http://en.wikipedia.org/wiki/Scripting_languages
Reply
#6

remove my post pls
Reply
#7

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.
Reply
#8

Quote:
Originally Posted by Arastair
Посмотреть сообщение
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.
This information was copied and pasted. I saw it somewhere else.

OT: My question is are we really scripting in pawn or programming?
Reply
#9

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.
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)