7.1. Why Generate Code?

The reason to generate code is simple: to efficiently capture and reuse knowledge of a problem domain. [Cle01] provides several useful terms to describe domain analysis, the design process that often leads to a GP implementation. Domain analysis identifies the commonalities and variabilities of a family of related software systems. Commonalities are standard features that are coded into the system and shared by all permutations of the system. Variabilities are features that can differ in various products, or in different invocations of the same product. At some point in the lifecycle of a system, you must make a choice, or specification, for each variability. The point in time that a choice is made is the binding time. ...

Get Component Development for the Java™ Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.