by rl3 · 10y ago · 0 comments
>What would programming be to you in an ideal world?
More visual, especially when observing execution.
When you're debugging anything non-synchronous—be it events, messaging, distributed systems—it usually sucks, even in the rare case that you do have good tooling.
I'd like to create, view and debug my code in an almost entirely visual fashion. I want to see events and messages perfuse through the structure of what I'm building, with complete temporal control of the view.
[0] http://www.chris-granger.com/2014/03/27/toward-a-better-prog...
<https://www.youtube.com/watch?v=VZQoAKJPbh8>
A recent iteration <https://youtu.be/VZQoAKJPbh8?t=46m56s> looks wiki-like.
I suppose that while visual programming excels at conveying topology and structure, it can be weak at a low level due to the tedium involved. Traditional code is arguably better suited for low-level grunt work, at least for most people.
A hybrid solution might be best. For example: a message travels from one high-level visual entity to another, and you'd easily be able to drill down into the code comprising those entities, locating the exact lines responsible for emission or receipt.
http://oro.open.ac.uk/35805/8/UML%20in%20practice%208.pdf
"Even if UML is viewed as the ‘de facto’ standard, it is by no means universally adopted. The majority of those interviewed simply do not use UML, and those who do use it tend to do so selectively and often informally."
"They also highlight some of the fundamental tensions within UML, resonating with arguments [8], [25], [17] that UML’s intended strengths (i.e., generality, accommodating different levels of abstraction) are intimately associated with its observed weaknesses (e.g., latent complexity, issues of transformation and coordination between views) and arise from fundamental properties of UML (e.g. lack of formal semantics, separation of expressions of structure and behavior)."
Whatever we do next, we have a nice set of examples and case studies of "what can go wrong."
The specific software tools based on UML are especially good examples of the problems.
As far as I'm aware, most visual programming today is actually implemented in the form of node-based editors, which gained popularity in the film and visual effects industries well over a decade ago.
The best modern examples I can think of are probably Nuke[0] and UE4's Blueprint[1] system.
[0] https://www.thefoundry.co.uk/products/nuke/
[1] https://docs.unrealengine.com/latest/INT/Engine/Blueprints/E...
Yeah. For any truly novel visual programming approach to succeed it'd probably require some next-level UI/UX work for sure.
Also many people don't use what is available to them. Modern IDEs support single-stepping and painless runtime introspection, and many have supported it for 20 years.
Still people resort to trying to trace out in their head what happens runtime.