On 6/20/2012 1:27 PM, Dale Emery wrote:
> Hi Tim,
>
>> The generated code is ass.
> In what ways is the generated code not sustainable? What future endeavors will the generated code hinder? How would people notice the hindrance?
I haven't seen an answer to this question of why the generated code shouldn't be
used. Maybe I'm too old but I have no clue what code being "ass" implies ;-)
Does it not work? Or is it just not pretty. Does it have performance issues?
Does it have bugs?
While it might be more fun to build new code than to find ways to incorporate
the generated code, the latter might be the right thing to do if there is no
need to modify (or ideally, even look at) the generated code. I.e. the "compiler
output" view of things. Maybe the scientists' model *is* the right way to
represent the core logic of the application rather than translating it into a
much more verbose (I'm assuming) format such as Java. If so, could you not
encapsulate the generated code into a component and build the rest of the
application around it using a stable API that wouldn't change (much) when the
code is regenerated from a new version of the model.
The right answer isn't always to find a way to change their minds about the
model. Even though the question was phrased as "How do I change their minds?"
(Paraphrased heavily.)
Cheers,
Gerard