Advantages of scripting compared to system languages
Some advantages of scripting, compared to system-level languages:
take much less time to write than system code. The programmer must do less housecleaning as the script platform handles most of the tedious memory and data problems. See Table.
script environment protects against programming bugs, as in this divide-by-zero example where dividing by zero would crash most systems, but is caught by the scripting system.
- Greater Security
- Fewer bugs - Easier to debug
evaluation and system independence make debugger implementation very easy, as in this debugger example.
- Flexible gluing
scripting solutions glue existing components together. See following page for examples.
- Smaller code
single line of scripting code often accomplishes many lines of system-level code. See Graph and Table.
- Faster to market, smaller, cheaper
nirvana, at last.
Mandatory reading: Scripting: Higher Level Programming for the 21st Century, by John K. Ousterhout of Sun Microsytems. This paper describes the advantages of scripting better than I ever could. The paper talks mostly about Tcl, but the principles apply just as well to any of the scripting languages.
fulfills most of the RAD goals that have been sought over the years. When programmer time is more valuable than the CPU time, scripting is a time and money saver.