0% found this document useful (0 votes)
23 views10 pages

Integrative Programming Technology - Applications VS Script Writing

The document compares and contrasts scripting languages and programming languages. While all scripting languages are programming languages, the main difference is that scripting languages do not require compilation and are interpreted, while programming languages typically require compilation. Some examples of scripting languages are JavaScript, PHP, Python, and VBScript. Some examples of programming languages are C and C++. The document also discusses how markup languages are used to control data presentation, scripting languages are used to generate data by mediating between programs, and programming languages are used to transform data.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views10 pages

Integrative Programming Technology - Applications VS Script Writing

The document compares and contrasts scripting languages and programming languages. While all scripting languages are programming languages, the main difference is that scripting languages do not require compilation and are interpreted, while programming languages typically require compilation. Some examples of scripting languages are JavaScript, PHP, Python, and VBScript. Some examples of programming languages are C and C++. The document also discusses how markup languages are used to control data presentation, scripting languages are used to generate data by mediating between programs, and programming languages are used to transform data.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Physically Detached Yet Academically Attached

Week 17
Lesson Title Application vs. Scripting Language
Learning Outcome(s) Compare and Contrast Application vs. scripting language

At SJPIICD, I Matter!
LEARNING INTENT!
Terms to Ponder

A markup language is used to control the presentation of data

A scripting language is used to mediate between programs in order


to generate data

A programming language is used to transform data

Essential Content

Basically, all scripting languages are programming languages.


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.

Generally, compiled programs run faster than interpreted


programs because they are first converted native machine code.
Also, 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. In practice, the
distinction between the two is getting blurred owing to improved
computation capabilities of the modern hardware and advanced
coding practices.

Another point to be noted is that 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 non-
scripting (compiled language). A live example of this is V8, the
Physically Detached Yet Academically Attached

JavaScript engine of Google Chrome, which compiles the JavaScript


code into machine code, rather than interpreting it.

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

A markup language is used to control the presentation of data, like


"represent these user names as a bullet list or as a table".
A scripting language is used to mediate between programs in order
to generate data. This is especially true of shell scripting languages
like bash, but if you reflect about it, also Python or Perl came from
the need to accomplish tasks in UNIX without writing a program in
C. The program that you control most of the time in those
languages is the interpreter of the language itself, which
accomplishes general tasks for you. Other typical programs you
interact with are database servers, or web servers.
A programming language is used to transform data. It does so by
creating CPU instructions that rewrite the input data into the
output; hopefully, the desired output. Examples of transforming
data is to compute a sum out of a number of addends, or solving a
system of differential equations from a set of conditions, or writing
and reading from a tree-like structure in a consistent manner given
a sequence of possibly simultaneous queries.
Going back to the user list metaphor, in a scripting language you
ask the database "give me all user names", then ask the web server
"send this user list to this requester".
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
Physically Detached Yet Academically Attached

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

Image source = https://www.educba.com/programming-languages-vs-scripting-languages/


Physically Detached Yet Academically Attached

Image source = https://www.educba.com/programming-languages-vs-scripting-languages/


Physically Detached Yet Academically Attached

Image source = https://www.educba.com/programming-languages-vs-scripting-languages/


Physically Detached Yet Academically Attached

Image source = https://www.educba.com/programming-languages-vs-scripting-languages/


Physically Detached Yet Academically Attached

Image source = https://www.educba.com/programming-languages-vs-scripting-languages/


Physically Detached Yet Academically Attached

Image source = https://www.educba.com/programming-languages-vs-scripting-languages/


Physically Detached Yet Academically Attached
Physically Detached Yet Academically Attached

SELF-SUPPORT: You can click the URL Search Indicator below to help you further understand the lessons.
Search Indicator
https://www.geeksforgeeks.org/whats-the-difference-between-scripting-and-
programming-languages/
https://softwareengineering.stackexchange.com/questions/241104/programming-
language-vs-markup-language-vs-scripting-language
https://www.educba.com/programming-languages-vs-scripting-languages/

You might also like