Web and Scripting Languages Overview
Web and Scripting Languages Overview
The World Wide Web -- also known as the web, WWW or W3 -- refers to all the
public websites or pages that users can access on their local computers and
other devices through the internet.
These pages and documents are interconnected by means of hyperlinks that
users click on for information. This information can be in different formats,
including text, images, audio and video.
More complicated of the web application system usin
DB
DB
Web Server Server
2. Query
Data
1.
3. Retrieve
Request
Data
4.
Response
More and more complicated of the web application
system
Business
Web Server Rules
2. Query
Data
1.
5. Retrieve
Request
Data
4. Retrieve
Data DB Server
6. 3. Query
Response Data
MVC
Architecture
Controller
View Model
S
SCRIPT COMPUTER
What is system Programming Language?
"A programming language is a way by which programmers communicate with
computers through the set of instructions known as code/program.“
• Programming languages are compiled languages, which means the source code is compiled
to convert it to machine code.
• A programming language is a computer language which is used to communicate with
computers using a set of instructions.
Programs
COMPUTER
Compiler
What is Script Language?
● System Administration
● System and Apps Extension
● Embedded system
● Experimental Programming
● Text Processing
● Web Programming
Scripting based applications
1. Task automation locally or remotely
As with any other kind of programming language, scripting helps you automate repetitive tasks based on patterns.
You can use languages like Python to optimize long processes within the applications or platforms you or your business already
use.
2. Beginner-friendly short scripts
The use of scripting languages does not require the same time commitment of more complex programming languages.
As such, they are beginner-friendly, especially when dealing with one such as Python. Despite this, it is able to power
collaboration platforms such as Instagram, Pinterest and even Google.
3. Create and manage dynamic content
Scripting languages help make the web more dynamic than its traditional static pages.
This is the case of displaying different data depending on the decisions made by the visitor, thus customizing the experience. An
example of this is WordPress, which uses PHP embedded with HTML code to serve content hosted in its databases.
4. Back-end programming for complex systems
Most modern web applications such as YouTube, Gmail, and social network sites run on a series of scripting languages in the
back-end. Among those is JavaScript, which is the most popular language across websites according to W3Techs.
Uses for scripting languages
The functions and applications of scripting languages vary based on the type of scripting language you're using.
1. Task automation: Programmers often use scripting languages to automate task execution within a runtime
environment. This involves writing code that allows individuals to use software to complete repetitive, predictable and
straightforward tasks, such as paying bills from an account and sending notifications via email.
2. Content display for web applications: Programmers use scripting to ensure programs run correctly on the server and
display the functional and interactive content on a webpage, such as images and links.
3. Command sequences: Many programmers apply scripting languages to condense command sequences, allowing the
program to run faster and improving the functionality of parent applications.
4. Data extraction: Programmers use scripting languages to pull data from data sets, such as in data analysis, research and
statistics.
5. Dynamic web apps: Programmers use a variety of scripting languages to power webpages and applications on the server
side with efficient code and clear instructions for displaying dynamic content, which is data that changes based on the
user's behavior or preferences.
6. System administration: When administrators want to generate and pull data, guide user queries and improve systems,
they use scripting languages.
7. Game modding: Game modification creators use scripting languages to make custom content for games with unique
functionality and designs that improve regular gameplay.
Types of scripting languages in
Web Programming
1. Client Side scripting
2. Server Side scripting
Server-side scripting
1. Server-side scripting is a technique of programming for producing the code which can run software on the server side, in simple words any
scripting or programming that can run on the web server is known as server-side scripting.
2. The operations like customization of a website, dynamic change in the website content, response generation to the user queries,
accessing the database, and so on are performed at the server end.
3. The server-side scripting constructs a communication link between a server and a client (user).
4. Earlier the server side scripting is implemented by the CGI (Common Gateway Interface) scripts. The CGI was devised to execute the
scripts from programming languages such as C++ or Perl on the websites.
5. The server-side involves three parts: server, database, and backend web software developed by the server-side scripting language.
• When a browser sends a request to the server for a webpage consisting of server-side scripting, the web server processes the script
prior to serving the page to the browser.
• Here the processing of a script could include extracting information from a database, making simple calculations, or choosing the
appropriate content that is to be displayed in the client end.
• The script is being processed and the output is sent to the browser. The web server abstracts the scripts from the end user until
serving the content, which makes the data and source code more secure.
CLIENT
MySQL • It is used to create dynamic web pages and are executed in
Databas the server.
e • Since the scripts are executed at the sever, the type and
version of the browser or OS on the client’s computer does
not affect its execution.
SERVER • Eg. Perl, PHP, ASP, JSP etc.,
Working of server side scripts
1 The web page containing server side scripts requested
by the user
2 Server side scripts which executes and access the result
from the database
4 This web page is then sent to the client browser and the
browser displays it
Definition of Client-side Scripting
• Client-side scripting is performed to generate a code that can run on the client end (browser) without needing
the server side processing.
• Basically, these types of scripts are placed inside an HTML document.
• The client-side scripting can be used to examine the user for the errors before submitting it and for changing
the content according to the user input.
• As mentioned before, the web requires three elements for its functioning which are, client, database and
server.
• The effective client-side scripting can significantly reduce the server load.
• It is designed to run as a scripting language utilizing a web browser as a host program.
• For example, when a user makes a request via browser for a webpage to the server, it just sent the HTML and
CSS as plain text, and the browser interprets and renders the web content in the= client end.
• HTML: It is the fundamental building blocks of web programming which provides the frame to the website. It
describes the arrangement of the content.
Client Side scripting
• It is used to perform any task at the client side and is executed in the browser.
• Since the script code is executed on the client browser, it provides a quick response to the
users.
• Disadvantage: there are browsers that do not support scripts. In some cases users may turn
off the execution of scripts in the browser.
• Eg. JavaScript, VB script
• It is mostly used for validations and also for performing simple calculations
Difference Between Server-side Scripting and Client-side Scripting
Languages involved PHP, [Link], Ruby on Rails, HTML, CSS, JavaScript, etc.
ColdFusion, Python, etcetera.
Affect Could effectively customize the Can reduce the load to the
web pages and provide dynamic server.
websites.
A web server executes the server-side scripting script that The script for client-side scripting that is already on the user's
Script Running
generates the page that must be delivered to the browser. computer is run by the browser.
When a user's browser sends a server request, this occurs.
It occurs when the browser has all of the codes and then changes
Occurrence After that, dynamic pages are produced based on a number
the page based on the user's input.
of factors.
Because the server-side programming is done on a remote When opposed to server side scripting, the client server scripting
Execution computer, the response time is slower than the client-side procedure is performed on a local computer, resulting in a faster
response time. response.
A server can run a server-side script, but it cannot run After receiving the page supplied by the server, the browser can
Operation
client-side scripts. conduct client-side scripting.
Connection to the It facilitates the connection to databases already existing on
It doesn't connect to any of the web server's databases.
database the web server.
It's ideal for any application that necessitates the loading of
Suitability It's ideal for any situation that necessitates user engagement.
dynamic data.
Ruby on Rails, PHP, ColdFusion, Python, ASP, Perl, and Javascript, HTML, CSS, VB script, and other languages are
Languages
more languages are used in server programming. frequently used for client-side scripting.
Access To Files It has full access to all files on the web server. It does not have access to all of the files on the web server.
Because server side scripts are generally concealed from Because the scripts are generally not concealed from the client, it is
Security
the client end, it is more secure than client side scripting. less secure.
System Programming Languages
vs. Scripting Languages
Parameters Programming Languages Scripting Languages
A scripting or script language is a programming
A programming language is a formal language language that supports scripts: programs written
that specifies a set of instruction that can be for a special runtime environment that automate
Definition used to produce various kinds of output. the execution of tasks that could alternatively be
Programming languages generally consist of executed one-by-one by a human operator.
instructions for a computer. Scripting languages are often interpreted (rather
than compiled).
Type It’s a Compiler-based language It an Interpreter based language
Usage Developing anything needful from scratch To combine existing components.
Unlike Scripted languages, the Programmed
languages is compiled into a more compact Scripted languages are interpreted within another
Interpretation form that does not need to be interpreted by program (like JavaScript is put within HTML and
another application in the same way. The then interpreted by the browser).
compiled result is stand-alone.
They run independently of a parent program or
Running These run inside another program
exterior
Design Designed to give full usage of a language Designed to make coding fast and simple
Development It takes longer to develop as more code It takes less time to code as it needs less
Time needs to be written. coding.
Does not require a host. Is self –
Hosting Requires a host
executable
C, C++, C#, Java, VC++, VB, JavaScript, VB Script, Shell, Perl, Python,
Examples
Basic, COBOL, Pascal, etc. Ruby, Rexx, PHP, GameMonkey, Lua, etc
Programming Language Scripting Language
A programming language is a computer language that is used toA scripting language is a type of programming language designed
communicate with computers using a set of instructions. for a runtime system to automate the execution of tasks.
As it uses a compiler, hence the complete program is converted into machineAs it uses an interpreter, hence the program is converted into
code in one shot. machine code line by line.
These languages are required to be compiled. There is no need for compilation.
It is comparatively difficult to write code in a programming language, and it It is comparatively easy to write code in the scripting language, and
requires numerous lines of code for each task. it requires few lines of code for each task.
The development time in programming languages is high as more lines areThe development time in a scripting language as a smaller number
required. of lines are required.
There is the high maintenance cost. There is less maintenance cost.
All programming languages are not scripting languages All scripting languages are programming languages
It generates a .exe file. It does not create a .exe file.
Usually, programming languages do not support or provide very littleScripting languages provide great support to user interface design,
support for user interface designing, data types, and graphic designing. data types, and graphic design.
Some popular examples are C, C++, Java, Scala, COBOL, etc. Some popular examples are Perl, Python, JavaScript, etc.
Scripting Language Programming Language
A Scripting Language is a Programming language that is A programming language consists of instructions for
mainly used to automate certain tasks within a software. the computer and is used for creating complete
software.
Execution and output is generated one line at a time. Output is generated for the complete program in one
go.
There is no need for compiling the script. The Program is compiled by the compiler at the time of
execution.
There is no executable file generated during execution of the An executable file is generated during code execution.
script.
The script is directly interpreted at runtime. The program is first compiled and then compiled code
is executed at runtime.
They are easy to learn and use. They are comparatively difficult to learn and use.
They are usually small pieces of code. The code is usually large and has a large number of
lines.
It is faster to write scripts as they are usually written to Coding in a Programming language is time taking as it
automate a specific task within the main program/software. involves designing a complete software.
Scripts are written within a parent Program. These Programs exist and run independently.
All Scripting languages are Programming languages. All Programming languages are not Scripting
languages.
Benefits Of Scripting Language
1. Ease of use: Scripting languages are generally easy to learn and use. Not much effort or time is needed to master a
scripting language and use the same.
2. Area of use: The areas of use of a scripting language are quite vast and could be used as a domain-specific language to
a general-purpose programming language.
3. No Compilation: These languages do not require the program to be compiled before run time.
4. Ease of Debugging: They are easy to debug as the scripts are small and the syntax is not complicated.
5. Portability: They can be used across various Operating Systems easily.
1. Faster Execution: Programming languages are faster when executed as they have already been compiled and a
machine code exists which directly runs to generate the output
2. No dependency: The programs can be run without the need for any external program.
3. Programming: Using a programming language, we can create complete software from scratch.
4. Code security: Before execution, an executable file is created, which is what the compiler does, therefore a
company/developer doesn’t have to share the original code. The executable file can be shared instead of the actual
code.
Scripting Languages or System Programming Languages?
System Programming Languages are preferable
1. Apps implement Complex algorithm and Data structures
2. Apps process Large Volume of Data sets
3. Apps functionalities are well defined and Fixed
4. Ability to create stand-alone apps
System Programming
5. Speed at runtime Scripting languages
languages
6. Need for compilation
Platform-agnostic
Platform-specific
Scripting Languages are preferable (cross-platform)