Short question. How do you go about transposing UML diagrams into code? The class diagram is an obvious one but what about others like Activity, Use Case, Sequence, State, Package, etc.?
Short question. How do you go about transposing UML diagrams into code? The class
Share
Wow, that’s really cool if you have all this prior to start coding 😉 This means someone made a decent job at modeling the expected software!
That said, the various diagrams of UML can map more or less closely to the code. Here is my feeling about it generally speaking:
Conclusion: UML is a tool to describe software under various perspective. Some aspects can be transposed easily in code, some other are more abstract and can be implemented in various way, depending on the granularity of the diagrams.
This is the distinction between design and development: the implementation is the refinement of the design into something really executable (the code), which may require more or less work depending on the granularity of the existing design.
The dream would of course be to be able to generate UML out of code, and vice versa, but we are not there yet! It almost works for class diagram though 🙂