Software Identification   «Prev 

Web Scripting Languages

  1. Scripts: Utilize a host language to execute Web functions; allow non-programming users to develop simple programs easily
  2. Client-side scripts: Embedded in HTML pages; save time in network traffic and server processing
  3. Applets: Small client-side scripts; typically have one function each
  4. Server-side scripts: Reside at the source of the Web document; allow for more functionality
  5. CGI: Referred to as a transport language, allows processing of forms or other interactive operations by transporting data into the server for execution
  6. ActiveX: Type of client-side script; adds efficient user interface and multi-media functions

Simple Domain-Specific Language

Sinatra takes advantage of Ruby's elegant syntax to define a simple domainspecific language (DSL) for implementing web applications. Method calls like get, put, and post correspond to the HTTP method of the request. When the method and the URI match, the code block handles the request and returns the result as an HTTP response. This DSL provides an expressive and natural way of developing a web application. Sinatra is particularly well suited to build a server that provides a RESTful API to its clients. Sinatra is a very lightweight framework with few dependencies. Getting started and developing an application are effortless. Our example will be a bookmarking application: users can save and view their bookmarks, tag them, and search by tags.
Sinatra really shines when it comes to creating RESTful applications, helping you create a server that provides an HTTP API. You can then write a front end with a JavaScript framework. However, using a JavaScript framework is not a requirement. Sinatra can also provide the front end. One can start building an example application by creating a model for bookmarks, providing database persistence, and defining a RESTful API.

A scripting language is a programming language that supports scripts. These are programs written for special run-time environments that can interpret 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
  1. software applications,
  2. web pages within a web browser,
  3. the shells of operating systems,
  4. Node.js
  5. 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.
The term scripting language is also used loosely to refer to dynamic high-level general-purpose language, such as
  1. Perl,
  2. Tcl, and
  3. Python,
with the term "script" often used for small programs (up to a few thousand lines of code) in such languages, or in domain-specific languages such as the text-processing languages sed and AWK. Some of these languages were originally developed for use within a particular environment, and later developed into portable domain-specific or general-purpose languages. Conversely, many general-purpose languages have dialects that are used as scripting languages.