Skip to Main Content
Metaprogramming, defined as creating application programs by writing programs that produce programs, is presented as the basis of a method for reducing software costs and improving software quality. The method starts with a rapid prototyping phase in which selected representative parts of the application are prototyped; this is followed by a tooling up phase, during which the metaprogramming occurs. The final phase is the production of the application programs using the software tools and techniques of the metaprogramming phase. The author summarizes the experience of two projects that support the assertion that metaprogramming is an efficient way to produce programs, since these projects used metaprogramming in their development. An economic theory which justifies this approach is outlined. It is shown how to do a cost/benefit analysis of the method.