ArticleslgStudy

science

Scripting language

Scripting language is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Scripting language rather than just read about it. In short: In computing, a script is a relatively short and simple set of instructions that typically automate an otherwise manual process. The act of writing a script is called scripting.

Scripting language — main illustration
Scripting language — illustration

Key takeaways

  • Scripting language belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Scripting language to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Scripting language from memory before moving on to harder problems.

Reference excerpt

In computing, a script is a relatively short and simple set of instructions that typically automate an otherwise manual process. The act of writing a script is called scripting. A scripting language or script language is a programming language that is used for scripting. Originally, scripting was limited to automating shells in operating systems, and languages were relatively simple. Today, scripting is more pervasive and some scripting languages include modern features that allow them to be used to develop application software also.

Overview A scripting language can be a general-purpose programming language or a domain-specific language for a given environment. When embedded in an application, it may be called an extension language. A scripting language is sometimes referred to as very high-level programming language if it operates at a high level of abstraction, or as a control language, especially for job control languages on mainframe computers. The term scripting language is sometimes used in a wider sense, to refer to dynamic high-level programming languages in general. Some are strictly interpreted languages, while others use a form of compilation. In this context, the term script refers to a small program in such a language. Typically, a script is contained in a single file, and no larger than a few thousand lines of code. The scope of scripting languages ranges from small to large, and from highly domain-specific language to general-purpose programming languages. A language may start as small and highly domain-specific and later develop into a portable and general-purpose language; conversely, a general-purpose language may later develop special domain-specific dialects.

Notable languages

AWK, for text-processing, generally available in Unix-like operating systems Batch file language (BAT), for scripting Microsoft Windows Bourne shell, interpreted language for scripting Unix and Unix-like operating systems Bash KornShell C, via Tiny C Compiler Groovy, Java-like, object-oriented scripting Java, using JBang JavaScript (later: ECMAScript), originally limited to running in a web browser to dynamically modify a web page; later enhanced into a widely portable, general-purpose programming language Linden Scripting Language, custom, extension language for scripting Second Life virtual world Lisp, family of general-purpose and extension languages for applications including Emacs Lisp for Emacs Lua, extension language used by many applications Perl, text-processing language that later developed into a general-purpose language; also used as an extension language for various applications PowerShell, for scripting Microsoft Windows, macOS and Linux Python, general-purpose and extension language Rexx, general-purpose language that runs on many platforms; also used as extension language Ruby, multiple-paradigm, general-purpose language sed, for text-processing; available in most Unix-like operating systems and ported to other operating systems TACL (Tandem Application Language), for NonStop computers. Tcl, for Unix-like environments, popular in the 1990s; can be used in conjunction with Tk to develop GUI applications TrainzScript, custom, extension language for Trainz railroad simulators VBScript, for scripting Microsoft Windows Visual Basic for Applications (VBA), an extension language available in Microsoft Office applications

Characteristics Script is a subjective characterization that generally includes the following attributes.

Interpreted A script is usually not compiled, at least not its usual meaning. Generally, they are interpreted directly from source code, or from bytecode, or run as native after just-in-time compilation.

Short & simple A script is generally relatively short and simple. As there is no limit on size or complexity, script is subjective. A few lines of code without branching is probably considered a script. A codebase of multiple files, that performs sophisticated user or hardware interface or complicated algorithms or multiprogramming is probably not considered a script.

Automates A script usually automates a task that would otherwise be performed by a person in a more manual way.

Limited language A language that is primarily intended for scripting generally has limited capabilities compared to a general-purpose language. A scripting language may lack the functionality to write complex applications.

Starts at the top Typically, a script starts executing at the first line of code whereas an application typically starts at a special point in the code called the entry point. For example, Java is not script-like since an application starts at the function named main which need not be at the top of the code. The following code starts at main, then calls printHelloWorld which prints "Hello World".

In contrast, the following Python code prints "Hello World" without the main function or other syntax such as a class definition required by Java.

Single user Scripts are often created or modified by the person executing them, but they are also often distributed, such as when large portions of games are written in a scripting language, notably the Google Chrome T-rex game.

… excerpt ends here. Continue reading the full article.

Illustrations

Scripting language: GDScript in Godot 3.4
GDScript in Godot 3.4

Worked examples

Example 1 — a first encounter with Scripting language

Start with the simplest possible case. Write down what Scripting language claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Scripting language before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Scripting language ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Scripting language

In research
Scripting language appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Scripting language in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Scripting language is common in secondary-school and first-year university syllabi. It links to neighbouring topics Programming paradigms, Scripting languages, so understanding it makes those chapters shorter.
In everyday life
Look for Scripting language outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Scripting language” →

How to study Scripting language in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Scripting language means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Scripting language out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Scripting language in simple terms?

In computing, a script is a relatively short and simple set of instructions that typically automate an otherwise manual process. The act of writing a script is called scripting.

Why does Scripting language matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Scripting language?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Scripting language.

Tags

  • Programming paradigms
  • Scripting languages

Keep exploring