Why Use a Scripting Language?
A computer language is akin to a tool in the toolbox of any tradesman. Each tool is designed for a specific task, be it a
The same toolbox concept applies to software engineering. The choice of programming language for undertaking a specific task has a
Java is obviously the main language on any J2EE project. Nevertheless, introducing concepts and language constructs from other programming
Java is a strongly and statically typed programming language. By contrast, scripting languages tend to be
Strong typing is important for production systems, as the compiler scrupulously checks for any
Mission-critical systems, such as military software and air-
Type safety is therefore a mechanism for assisting in the development of reliable and robust software, and it is an important language feature for any software that requires high levels of reliability.
However, not all software developed on an enterprise project
Here are some examples of these additional project tasks that can benefit from the use of a scripting language:
The
|
Features of a Scripting Language
Scripting languages lack the formal semantics of conventional languages like Java. They are loosely typed and highly dynamic, two features which make them ideal for noncritical project
The main features of a scripting language include
Over the
The biggest question
In addition to these points, characteristics such as the language's maturity, performance, and quality must also be
Team Experience
With a number of languages to choose from, looking to assess the expertise of
Tip If the team is skilled in a language such as Python, then adopting Jython, the Java equivalent, is one way of leveraging that previous Python experience.
Investment in the education of a team in a particular scripting language should be part of a company's wider adaptive foundation for rapid development. Standardization on a common scripting language across project
Crossplatform
Not all of the main scripting languages are crossplatform. Scripts can be
Java offers crossplatform support, and it would be preferable if a scripting language were available that
Several languages are available that fall into this category. Table 9-1 lists some of the
Table 9-1. Scripting Languages for the Java Platform
Several of the JVM scripting languages are
Integration with Java Classes
For tasks such as writing ad hoc
This is the main reason for choosing a Java-based scripting language over one of the established languages. Without Java integration, many common scripting tasks are far more cumbersome, thereby
To appreciate the relationship between scripting language and Java, the
|