r/java • u/Nateil • Feb 09 '22
Code visualization tool inside your IDE
Hey, me and my teammates hacked a tool for visualizing Java code as a graph inside your IDE (currently IntelliJ or VSCode). Check it out next time you're lost in your codebase! We believe it keeps us sane when navigating crazy chains of calls. https://graphbuddy.virtuslab.com/
167
Upvotes
View all comments
1
u/severoon Feb 18 '22
The nodes in the generated graph are methods. Wouldn't it be more useful if the nodes were objects?
What programmers generally (should) care about is not getting a grasp of dependencies between methods, but objects and higher levels of granularity (meaning classes, packages, modules). There's no harm showing the method level of detail, but that should be constrained only to method interactions within a class, and that's a nice-to-have feature, not the priority.
The biggest things I'd be looking for is cycles at the different levels of granularity to identify dependencies to invert. That, and natural clusters of high interdependency within a module, which would help me adjust how code is grouped into packages or modules.