C++ Code and Scripting
The code used to generate these results is identical to that used in . The only difference is a small change in the script (or batch file) file. This is a further illustration of the power of design patterns—the C++ code in question uses the façade pattern.
By employing scripting, the useful lifespan of the façade program can be extended. This is similar to the widespread use of configuration files (for example, in J2EE). Scripting and configuration files are separate and distinct from the source code itself. A leading-edge technique called aspect-oriented programming (AOP) takes this a step further in allowing individual classes to be scripted and modified at run time. (See a discussion about the principles of AOP by Danny Kalev here.)
Figure 3 Progression of scripting techniques.