Re:Show HN: PojoViz – Visualize the structure of any JavaScr...
by maurizzzio on Monday August 11, 2014 @11:39PM
(#8166476)
Actually I wrote a step-by-step example of the Object function in the readme file, what PojoViz does is just make an analysis of the structure of the library without running any code from it, it's pretty simple but the results are kinds amazing like discovering that Function.prototype is actually a function O:, but your idea is awesome and should be the next step of PojoViz, thanks!
Re:Show HN: PojoViz – Visualize the structure of any JavaScr...
by Uehreka on Tuesday August 12, 2014 @07:36AM
(#8167352)
Just a heads up, analyzing the structure of code without running it is called static analysis. If you're going to continue working on this, you may want to look into using a parser like Esprima (http://esprima.org/).
Re:Show HN: PojoViz – Visualize the structure of any JavaScr...
by maurizzzio on Tuesday August 12, 2014 @12:08PM
(#8168402)
Thanks :)
I think it would be really useful to have a tool that visualizes execution paths of programs to help you understand the general architecture of someone else's project. I believe debugging tools are able to do this to some extent, but I haven't seen anything that exactly fits, especially for JS. I would want to be able to do some interaction (e.g. mouse click) and see a visualization summarizing all the lines of code that were run without stepping through them one-by-one. Maybe this is a direction that PojoViz could go in eventually.