File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes OO, Patterns, UML and Refactoring and the fly likes UML Tool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "UML Tool "code generation"" Watch "UML Tool "code generation"" New topic
Author

UML Tool "code generation"

lydia westland
Ranch Hand

Joined: Feb 24, 2002
Posts: 72
Has anyone ever used the "code generation" in UML tools? I am wondering if the generated code does help and save labor. Thanks.


Lydia<br />~~~~~~~~~~~~<br />I love Italy team.
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
Ugh. The idea of code generation from UML makes my flesh creep. At its best UML is a way to share ideas between people. In no way is UML syntactically or semantically precise enough to generate sensible code.
All the UML editors with code-generation capability that I have seen all require you to clumsily add lots of non-standard information to your UML "models" so that it can know enough to even generate basic class and method definitions for you. And requiring that these UML models include every class and object in your system make them far to unwieldy, slow and (worst of all) incomprehensible.
I read somewhere that a good UML diagram should have no more than 5-9 items on it. That way it stands a good chance of being described and understood by most people. Expecting to generate usable code from a diagram like that seems crazy.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Only want to mention that I totally agree with Frank...


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: UML Tool "code generation"