9
Writing Flexible Code
Pattern Matching and Regular Expressions
Use Expressions and Text as Macros
Functions: Pass By Reference Versus Value
Introduction
The word “flexible” is often used in the context of an object being able to bend without breaking, or something or someone being able to adapt to new circumstances (being able to change or be changed).
This chapter covers JSL objects and methods and our recommendations to help you write flexible scripts that run without breaking and are easily maintained or extended.
The first section, “Code for the Task,” provides ...