You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying on this, it's a little complex, not that so complex. And I am not using plantuml activity.
Displaying the participants, branches, actions all in sequential diagram maybe better to understand.
ballerina sample 1:
ballerina sample 2:
The picture above is from Ballerina microservice framework. I do some trying for golang.
Before showing some samples, I want to share my thinkings.
which language construct or activities should we visualize?
I think OOP is good.
Maybe what we care most is the Participants and Communication.
Besides, we care the condition branches. like when something happens? If it happens, what we should do?
what communication stands for?
method call (method has receiver type): object sends message to another object
package exported function call: this maybe not a message passing, but it still looks important for us.
RPC or network activity.
etc.
ps: After I do some trying on this, I think it would be better if we could specify which activity we should focus on.
how should we visualize these constructs or activites?
plantuml: plantuml is an option, but maybe we should look for better solutions.
plantuml generates an static picture, sometime it is enough, maybe most time, it's not.
when we reading code or trying to understand code, what we focus changes as we navigate, a little like the IDE supports code folding feature.
some syntax like if-else/switch-case/for-loop rendered by plantuml is a little hard to understand, the alt-else/loop is not clear enough.
Maybe we could use this render method like Ballerina, though it would be much more complex. Or we could add some options to exclude/include the language constructs.
The text was updated successfully, but these errors were encountered:
I am trying on this, it's a little complex, not that so complex. And I am not using plantuml activity.
Displaying the participants, branches, actions all in sequential diagram maybe better to understand.
ballerina sample 1:
ballerina sample 2:
The picture above is from Ballerina microservice framework. I do some trying for golang.
Before showing some samples, I want to share my thinkings.
which language construct or activities should we visualize?
I think OOP is good.
Maybe what we care most is the Participants and Communication.
Besides, we care the condition branches. like when something happens? If it happens, what we should do?
what communication stands for?
ps: After I do some trying on this, I think it would be better if we could specify which activity we should focus on.
how should we visualize these constructs or activites?
plantuml generates an static picture, sometime it is enough, maybe most time, it's not.
when we reading code or trying to understand code, what we focus changes as we navigate, a little like the IDE supports code folding feature.
some syntax like if-else/switch-case/for-loop rendered by plantuml is a little hard to understand, the alt-else/loop is not clear enough.
some samples:
and relevant puml:
rendered picture:
ForStmt
relevant puml:
rendered picture:
take a real project as example:
Just a little try, It even cannot satisfy my own usage.
If we could find a better reprentation manner, it would be better.
I learned that the microservice framework Ballerina supports graphical editor, https://medium.com/ballerina-techblog/ballerina-vscode-plugin-graphical-editor-for-ballerina-b6af226178d6.
Maybe we could use this render method like Ballerina, though it would be much more complex. Or we could add some options to exclude/include the language constructs.
The text was updated successfully, but these errors were encountered: