Scripting

Scripts

duh

Script

Programs written for a special run-time environment that automate the execution of tasks that could alternatively be executed one-by-one by a human operator.

History

History

They are:

  • Interpreted (rather than compiled) 
  • Very High Level
  • Easy to Use

Java

Python

public class HelloWorld {
  public void printHelloWorld() {
    System.out.println("Hello World");
  }
}
print("Hello World")
print "Hello, World!\n";

C#

Perl

public class Hello1
{
   public static void Main()
   {
      System.Console.WriteLine("Hello, World!");
   }
}

Performance

General Purpose

  • Perl
  • Python 
  • JavaScript
  • Lisp

Domain Specific

  • HTML & CSS
  • Emacs Lisp
  • Vim Script
  • Most Markup Languages

Uses

Automated Testing

Glue Language

GUI Scripting

Amazing Resource

Scripting

By José Jesús Sinohui Fernández