Another Twisted Chapter UML

  • Thread starter Thread starter Jeff Louie
  • Start date Start date
How is UML any clearer than code?

Unless there is a way to program in UML,
then there are two representations: UML and
code, which requires synchronization of the
two, ie, extra work.

Where is the benefit?
 
Hi Peter... There are products that will generate code from a UML
design.
I usually do my designing in my head <g>, but others like to draw
pictures to document and share their thought process. I actually found
the act of drawing the UML diagrams was helpful as it forced me to think
about the finer points such as contaiment by ownership vs containment
by reference. Finally, I just thought including the UML diagrams in each
chapter would make it easier for some to visualize the concepts
presented in the tutorial.

Regards,
Jeff
How is UML any clearer than code?

Unless there is a way to program in UML,
then there are two representations: UML and
code, which requires synchronization of the
two, ie, extra work.

Where is the benefit?<
 
Hi Jess,

Jeff Louie said:
Hi Peter... There are products that will generate code from a UML
design.

Absolutly, I'm using Rational XDE ( used to use Rose before) and it generate
the code directly from the diagram as well as generate the diagram from the
code.
I usually do my designing in my head <g>, but others like to draw
pictures to document and share their thought process.

Well I think that all design first on the head :) but the thing is that UML
is a standard way to represent what we think inside our head, each one think
in different ways ( some very twisted ;) ), we also write code in different
ways, but as UML is a standard notation then it's the best way to share a
design among different people especially in this world where the person
really programming maybe half a world away from the person that did the
design. in such an environment UML is a key piece.
Regards,
Jeff

Unless there is a way to program in UML,

I went to a conference with a Rational representative and they said that
they were doing research in that way.
then there are two representations: UML and
code, which requires synchronization of the
two, ie, extra work.

No really, it depends of the tool you use, Rational XDE does it for you and
I think that MS Visio does it too.

Cheers,
 
perhaps Rational will find a way to do the translation
automatically. What is absolutely crucial is that the
generated program be debuggable in UML, so i
dont have to debug it in the Common Language
or whatever the target of the translation is. Else,
i wind up having to learn the two representations
of the computation.
 
The UML can create a code template. It can't write the logic inside the
methods and properties unless you include this inside the UML properties
when you create the class diagram.
 
Back
Top