Plantuml Is Awesome
PlantUML is an open-source tool allowing users to create UML diagrams from a plain text language.
This post is all about why I felt PlantUML is awesome.
PlantUML is an open-source tool allowing users to create UML diagrams from a plain text language.
You can just write few lines of code to draw your UML diagram. UML diagrams are very important in communicating design implementation, doing these digrams in draw.io or something drawing tool is a time taking task. Playing with touchpad/mouse for long time is less effective.
I have used similar tools in past, like mermaid and graphviz.
Following are the things that made PlantUML different
- Readability
- Maintainable
- Flexible
- Powerful
- Customable
Once the UML is designed with plantUML the end result can be extracted out into PNG or SVG. There are plugins that can be easily intergated into IDE’s, such as PlantUML for VS Code and PlantUML for IntelliJ.
Also available for Confluence(document manager of Atlassian suite) where the history of the change in design implementation can be tracked easily PlantUML for Confluence
PS: PlantUML has written in java with graphviz under the hood :)
PlantUML is a component that allows to quickly write :
- Sequence diagram
- Usecase diagram
- Class diagram
- Activity diagram (here is the legacy syntax)
- Component diagram
- State diagram
- Object diagram
- Deployment diagram
beta
- Timing diagram
beta
You can find the details documentation of how and what is plantUML.
Here I took a random sequence diagram from internet and tried to replicate the same in PlantUML with few tweeks, the end result was wow!
Sample Sequence diagram
Sequence diagram with PlantUML
It’s not just a replica, but a much better one.
Here the code that did the magic
for us.
|
|
Thanks for reading!!! :)