4 ms·
> Another thing that rubs me wrong is the recurring notion that we need to get rid of the text as a representation of code. I completely agree with this notion
by _gabe_ 4y ago
> Another thing that rubs me wrong is the recurring notion that we need to get rid of the text as a representation of code.
I completely agree with this notion. However, I feel like we're sorely missing out on some form of visual exploration. I feel like the majority of my time is spent trying to understand the flow of execution of a program I'm trying to maintain that was written by other teams that are long gone.
It would be so amazing to be able to "zoom out" from the text and get a graph view of execution flow through different files. And then being able to highlight a particular execution flow that you're studying would be great. I know we already have some flavors of this with "find all references", or something like Visual Studio's profiling tools that highlight flows of execution, but none of these have ever felt like they improve the exploration of the codebase very much.
It would be very interesting to see some tools that allow a more fluid exploration of an unknown codebase. More akin to zooming out of a Google map view and tracing flow from point to point, instead of diving headfirst into a million files looking for the correct information.
- vlunkr 4y agoSeems like you’re describing architecture or sequence diagrams.
- samsquire 4y agoYes, like crocodile clips for a circuit board, I can insert a probe into a circuit and see what's on the wire. When your callstack is 50 methods deep and there's 20 layers involved and marshalling and it's difficult to see what is going on. I want to mark two pieces of code and see the data structures passing through them, similar to a debugger but more like a log file or trace like Jaegar or Kibana. But the actual POJO or JSON objects themselves.
- KronisLV 4y agoSourcetrail actually tried to do that for a select few languages https://github.com/CoatiSoftware/Sourcetrail https://github.com/CoatiSoftware/Sourcetrail Sadly, they retired the entire project a while back.
- _gabe_ 4y agoThis looks very cool and pretty similar to what I was visualizing. I'll have to download it and play around with it for a bit :)
- midoridensha 4y agoI've felt like this for a very long time, and it's disappointing that there aren't really any tools to do this yet. It would make it so much faster to come up to speed on a new codebase, and also to see where some potential problems might lie.