2010-02-24

UML in a new way

Once again I found myself in the need of writing some UML. My last attempt nearly got me carpal tunnel syndrome and a broken mouse.
Yet I once more went on the quest of finding a UML editor, bracing myself for a crunch down on the little pointer with a tool that would eat all my RAM and spit it back out.
This time around however, I discovered PlantUML. The process of writing for instance an action diagram became this easy:
@startuml
(*) --> "Download PlantUML"
--> "Run it"
--> "Open Notepad"
--> "Write Some Text"
--> "Hit Save"
--> "Look at the generated diagram"
--> (*)
@enduml
The tool supports Sequence, Use Case, Class, Activity, Component, and State diagrams, and only requires GraphViz.
And if Notepad isn't your tool of choice, you can choose between Word macros, Eclipse plugins, Ant tasks, or 10 other ways of running the tool.
Since it's text you can easily store it in version control, source code comments, pass it along in emails, tweet it, generate it, and parse it.
Batteries included, mouse not required. Highly recommended.