Single Source, Multiple Targets Models expressed in domain terms can also
be used for purposes other than producing code. In DSM, generators can produce
simulation, prototypes, metrics, test material, con?¬?guration and deployment, and
build scripts as well as documentation. Having a single source, models, is a powerful
concept as changes in one place can automatically update other related artifacts.
3.1.4 Representations Other Than Text
Speci?¬?cations in a problem domain cannot necessarily be best represented using pure
linear text, as typically used in programming languages. What works for a compiler
does not work for specifying a solution in a problem domain. Although text is quick to
enter and concise, it is prone to errors on entry, hard to manipulate during generation,
and any constituent parts are dif?¬?cult to reuse elsewhere. Partly for these reasons
during the past few decades newer programming languages have not realized a closer
alignment between the problem domain and solution domain.
In DSM, other representations such as graphical diagrams, matrices, and tables are
used along with text to provide the desired closer mapping to the problem domain. For
example, in a graphical ?¬‚ow diagram, the execution order is based on connections
between model elements, not on the sequential order of lines of text.
Pages:
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113