Home > Articles > Programming > C/C++

  • Print
  • + Share This
Like this article? We recommend

C++ Code and Scripting

The code used to generate these results is identical to that used in [1]. 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 illustrates the progression of scripting techniques as they apply to programming (other technologies, such as Perl, Python, JavaScript, and so on exist in their own right as separate techniques).

Figure 3

Figure 3 Progression of scripting techniques.

  • + Share This
  • 🔖 Save To Your Account