70 points · by vmorgulis · 10y ago · 27 comments
Personally I am pretty confident that in the next few years there will be an emergence of such tool. Node-RED and NoFlo are on the area, but the goal of the first didn't help and the other went after the money and lost traction and the opportunity so it became stagnant.
Seems to make it very easy to visualize parallel code btw.
Instead you build the UML and then go write code to implement what you modeled in UML. Anything you change in the code is not reflected in the UML making it out of date.
If you could actually execute your UML it would be much more useful. As it stands, its just a standardized diagram for visualizing designs.
This does look neat though and should be useful for education.
I agree with this but would like to add: Why do people think programming is writing text into an editor? The suggestion that maybe there's a better way than writing stuff in emacs or vim is considered heresy.
The limiting factor is human working memory: the more that is visible at any one time, the less I have to remember.
So it makes sense to divide the screen into a matrix of little boxes, and put a symbol in each. That maximises information.
Most programming languages fill those little boxes with ASCII glyphs because those are what's available on a US keyboard. We certainly could use Unicode or something else, but we'd need different input devices.
How could we improve things? At the moment any space after a newline is wasted, unless there's a line comment. I like Chrome web inspector's approach of putting debug evals in there.
You're exchanging density at a detail level with being able to visualize the entire program from a 1000 feet high.
An example use of unicode in comments:
case (Zero, _) ⇒ g.sign == Positive // ∀x ∈ ℝ⁺. 0 < xThis would make various debugging setups a lot more workable...
The technical term for this kind of response is "rationalization". You're justifying text after the fact, not describing why it was chosen in the first place. (Hint: because we didn't have widely available, non-textual UIs back then is one possible reason.)
It may still be true, of course, but it's definitely not "truth".
[0] Admittedly, I haven't explored the original article enough to determine whether this one is, but that's not really my point.
Anyway: how do I resolve merge conflicts in version control?
But with Node-Red, I can use Flow-Cloner to close the main repo to my local machine.
Then I can do work, and make sequential updates to my project in projects/project1/flows.json and use GIT as normal. Then I submit them as any source commit.
Then the project owner can then clone the .json file into stable/main/dev as appropriate.
And yes, that works, because it's what I do.
Visualizations like flow charts can help even advanced programmers get an understanding of some unfamiliar code, because it's much easier to see the program flow spatially than to read a big block of code and produce that representation in your head (temporarily, only to forget it shortly after).
The downside is that building visualizations is much slower than typing the set of instructions for it, as we do in code. This program seems to do things backwards (generate code from flowcharts), where what would be the most useful functionality would be to generate the flowcharts from code - thus enabling both the programmer to be productive and the non-programmer to not be scared.
There is a really small class of problems that it actually has some use.
In reality, it makes easy problems easy, and everything else complicated or impossible.
COBOL programmers had to use JSP since control flow in COBOL is ugly as hell, and because of a lack of good tools.
I guess the same idea that spawned COBOL that drives this; Just about anyone that does not drool (that much) can actually build highly complicated systems.
In COBOLs case, it turned out that it's really really hard to write good COBOL systems. Because it's really really hard to build systems in any language.
I could go on about information theory and whatnot, but let's say that only a fool would do surgery with a butter knife.