bakunin95
2/22/2015 2:37:00 PM
Hi Thomas, thank you for your post, I appreciate you take the time to comment.
First of all, i agree, i need to respect the UML standard more like where i put the type, the visibility and the ordering. I admit i did not put much effort into that and it show. The good news is that the hard work is to extract all those info from the source code, not to show them so most of it should be fixed by the end of the week.
I intend to generate a diagram of a web application and all its components. I want to support javascript/nodejs,css,html,java. The problem I have is that UML is not meant to show web application and all these languages components except for java so i use «stereotypes» and color to extend UML and to show what is the
type of the file. In this React framework example, you only see JavaScript file.
JavaScript is definitely the most difficult one to show in UML, i know i will never have a perfect representation but at least i will try.
The fact that there are no class yet and that there are so many people that use this language differently pose problem. For example, i cannot tell for sure that ReactInstanceHandles is meant to be a Class or if its simply a standalone script. I cannot tell in what environment they will be run, is it a nodejs module for the server ? or is it a javaScript file for the client..
What i found out with my project is that what would be a small class in Java end up being an Object inside a JavaScript file. This is why i extract that information. As for Array, im still unsure if they are
interesting components to extract or not.
The visibility is also quite tricky, they are not explicitly shown in Abstract Syntax Tree, i will have to do it manually if its not too complicated, that is why its not already done. However its very high on my priority list so i thank you for your comment about that.
Again thank you, if there is anything else i can do to make my project better, feel free to share.