3 ms·
Instead of having to compute the code in your head and stepping through the changes mentally it’d be easier to see it visually. This doesn’t mean replacing the
by fossuser 6y ago
Instead of having to compute the code in your head and stepping through the changes mentally it’d be easier to see it visually.
This doesn’t mean replacing the code since text is an efficient way to write. I’d want the code to generate a real time representation of its flow.
Imagine writing a graph and running Dijkstra’s algorithm and seeing the nodes appear as you write them, seeing edges appear and seeing the traversal next to the code.
We do this anyway in our heads or poorly with debuggers. We do this on whiteboards when trying to understand the problem.
If this was built into our tools we could offload the computing of our code itself to the computer and get immediate feedback. It’d be a lot easier to reason about.
Tree structures, recursion, etc. In the end the intuitive understanding of code good programmers have would come, but it could come a lot faster and easier. As a bonus you could see non obvious patterns you might otherwise miss.