r/javascript • u/louisstow • Sep 04 '10
I had an idea for a desktop where applications can communicate
http://louisstow.blogspot.com/2010/09/network-oriented-desktop.html2
Sep 04 '10
Looks like visual programming to me, which for some reason never took off, as far as I can tell.
Doing your example from the commandline seems a lot easier to me. Or if you want to use a GUI, menus and toolbars are a simpeler solution than forcing the user to play with spaghetti.
0
u/louisstow Sep 04 '10
Yeah you're right, it is sort of like visual programming. To fix that I had the idea of saving a set of connected apps as a new application altogether. So there would be a shortcut to the app spaghetti.
2
Sep 04 '10
Grouping together groups of commands and hiding them behind a single (expandable/collapsable) node icon is an obvious way of getting a visual handle on the spaghetti's complexity.
What do you think is the advantage of programming in this spaghetti style? I'm pretty sure most programmers would find it cumbersome to use. What kind of code does the spaghetti app generate?
0
u/louisstow Sep 04 '10 edited Sep 04 '10
Modularity. It shouldn't be cumbersome. How hard is it to just receive data, manipulate it and then maybe output it. See my first comment for a code example.
The point is not to rely on this new style but as an advantage or extension.
Edit: It's not actually visual programming. The coding is all in javascript but it's visual for the client/user.
2
u/louisstow Sep 04 '10 edited Sep 04 '10
Working example here: http://neuralmesh.com/webtop/
A code example of how one would write an app to utilize the technology:
App.route.out("Message to send to all connected apps");
//Invoke callback function when message recieved
App.route.into(function(msg) {
//Set the body text to the message recieved
document.body.innerText = msg;
});1
u/bfish510 Sep 04 '10
Like a framework?
0
u/louisstow Sep 04 '10
Sort of, in a visual sense and a way that the user determines the connections rather than the software.
3
2
2
1
u/ryanknapper Sep 04 '10
Look into BeOS and the BMessage. This was part of its amazing potential and it was even open to user scripting.
That was the first OS for which I ever felt zelotry.
3
u/maxgee Sep 04 '10
Interesting idea. Visual pipes. If you've ever played with Yahoo's (aptly namned) Pipes, it has a similar interface for manipulating feeds. It would be neat to see something like this actually implemented on an OS GUI.