File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UML Tool "code generation"

 
lydia westland
Ranch Hand
Posts: 72
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has anyone ever used the "code generation" in UML tools? I am wondering if the generated code does help and save labor. Thanks.
 
Frank Carver
Sheriff
Posts: 6920
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only want to mention that I totally agree with Frank...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic