News for hackers. Stuff that matters.
Re:Visual Programming Is Unbelievable (2015) by pmoriarty on Tuesday March 08, 2016 @10:05AM (#11245607)
Another place where visual programming is popular is among music producers, with systems like Max/MSP[1] and PureData[2].

I dabbled in PureData a little, and while it seemed to be ok for simple things, I imagine that for anything even moderately complex, it would quickly become a nightmare.

While visual programming paradigms seem like a nice thing at first glance, they are missing out on whole ecosystems of tools developed over many decades for text-based programming. Things like debugging, version control, grep, search/replace, all the features of advanced text editors like vim or emacs, etc.

[1] - https://en.wikipedia.org/wiki/Max/MSP

[2] - https://en.wikipedia.org/wiki/Pure_Data

Re:Visual Programming Is Unbelievable (2015) by sebular on Tuesday March 08, 2016 @10:32AM (#11245799)
I don't know what your definition of a "moderately complex" program looks like, but I have to say that from my own dabbling with PureData I really enjoyed the way it handled the concepts of abstraction and encapsulation.

It's been long enough that I've forgotten the terminology, but I remember thoroughly enjoying the process of first building a widget, then meticulously arranging all of the little boxes, color-coding, and labeling various sections until it looked visually attractive. Then when I was satisfied, I could take that entire widget and abstract it away as a small box with only the relevant input/output connectors.

I guess it's always just stuck out in my mind as the one time I really dug into a visual language, and the aesthetic aspect of organizing my "code" was very appealing. It's been a decade since I last opened any of those old project files, but I can still picture many of the components I built with my mind's eye. In and of itself, that's got to be worth something.

I imagine that someday we'll see the rise of a programming metaphor that works as a hybrid of code and visual. Even though working with PureData was inspirational, I don't see text-based languages losing relevancy any time soon. However, I think that while text code is great for representing the flow of logic, higher-order organizational constructs (such as class hierarchies) might be better represented by visual relationships. If I give you a paper and pencil and ask you to map out interconnected relationships between a bunch of entities, you're probably going to start drawing boxes and lines-- and end up with something that looks a lot like PureData.

Especially if you consider the potential of future iterations on today's VR/AR concepts, I wouldn't be too surprised if programming languages eventually looked like color-coded interconnected boxes of text code that can be rearranged in space. It wouldn't even be that far-fetched to imagine animations being included to enhance a programmer's ability to visualize the flow of logic. And I don't think that such concepts should be particularly offensive to those who consider themselves to be serious programmers.

Re:Visual Programming Is Unbelievable (2015) by TuringTest on Tuesday March 08, 2016 @11:16AM (#11246158)
I imagine that someday we'll see the rise of a programming metaphor that works as a hybrid of code and visual.

You're going to enjoy the Eve language...[1][2] :-)

[1] http://eve-lang.com/

[2] http://incidentalcomplexity.com/

Re:Visual Programming Is Unbelievable (2015) by mhroth on Tuesday March 08, 2016 @05:47PM (#11249415)
Pd and Max/MSP are indeed great languages, at least with respect to being able to visualize audio signal flows. But I beg to differ with this idea that they can't be fast or efficient. Such languages can be compiled just like any other, though Pd doesn't do this in order to retain the flexibility of dynamic patching.

[1] I helped write a system called Heavy which can translate Pure Data patches into fast C code. https://enzienaudio.com/

[2] Here's a simple example video. https://www.youtube.com/watch?v=_zwI5g3NNYw

Re:Visual Programming Is Unbelievable (2015) by DonHopkins on Tuesday March 08, 2016 @11:42AM (#11246390)
Jeremy Bernstein's discussion of NATO+3d modular has some interesting screen dumps of Max/MSP programs. [1]

Depending on the temperament of the "NATO.0+55 pilots" [2], the code could get pretty ahem "artistic" looking. [3]

[1] http://www.bootsquad.com/old_site/nato/nato00.html

[2] https://en.wikipedia.org/wiki/Nato.0%2B55%2B3d#NATO.0.2B55_p...

[3] https://en.wikipedia.org/wiki/Nato.0%2B55%2B3d#/media/File:N...

Re:Visual Programming Is Unbelievable (2015) by soundwave106 on Tuesday March 08, 2016 @11:54AM (#11246493)
The nice thing about VPLs is that they are more intuitive to people with non-programming experience. I imagine many Max/MSP / PD artists have never written a line of C in their life. And even if you have programming experience, VPLs can be a lot quicker to set up for certain tasks versus writing a full fledged plugin. So VPLs can be great as a prototyping / experimentation tool.

But yes, absolutely, for more complex tasks (and my examples would be: DSP routines such as filtering, anti-alias oscillators, etc.), it would be better to use a text language. Both PureData and Max/MSP have external objects (that you write and compile in a text based language) for this purpose... although, even these objects will never be as fully optimized as a plugin that is completely text-language based.

Re:Visual Programming Is Unbelievable (2015) by Joeboy on Tuesday March 08, 2016 @10:20AM (#11245703)
Also node-based visual compositing (eg. Nuke / Natron / Blender's compositor). It works very well there, although it does rely on people doing proper programming to create the nodes.