Show HN: Instrumenting and visualizing JavaScript with d3.js
latentflip.github.com
latentflip.github.com
While I love the look of force-directed-graphs, they wind up representing lots of arbitrary/random values, in all the degrees of freedom of the exact location/angles/proximities they settle into.
I would suggest using a more traditional nested-outline view, either overall or within certain subgraphs. Then, the above/below axis could mean something consistent -- like ordering in source code -- and the left/right something else -- like nesting/composition. And there might be more room for projecting persistent time information -- like a piano roll -- off in a particular direction.
Still very pretty, interesting, and promising!
Posted here but with no comments http://news.ycombinator.com/item?id=4676314
Personally I find the force-directed graph animations distracting. I would render the graph statically and have better animations for the propagation of information in your code.
Have any use cases in mind?
I guess I am just interested in how to make code more visual.
I haven't tried it on a "real" code base yet but I will.
It's not really a real world applicatoin yet, but if it helps, your post inspired me gave me some ideas for integration into the product. If I publish anything I'll be sure to give you a shout out :)
A couple of thoughts for the demo, it would be cool to see the actual JavaScript source code too, so you could get a feel for what the visualisation is showing you. Also, noting which functions were event handlers would be useful, although a bit tricky.
Also if it was injectable via a bookmarklet into a running backbone application. That would make it a great debugging tool.
Bonus points : click on a method to see the source code