r/programming • u/SamgoesBam • Nov 09 '13
How An Arcane Coding Method From 1970s Banking Software Could Save The Sanity Of Web Developers Everywhere
http://www.fastcolabs.com/3016289/how-an-arcane-coding-method-from-1970s-banking-software-could-save-the-sanity-of-web-develop7
u/glacialthinker Nov 09 '13
I might be off the mark, but LabView? Or NeXT's visual "scripting"? We've also used terms like "stereo-connection" systems... for procedural texture generators or other signal generation.
The problem I've always seen with this approach is that the complexity becomes too great to manage. A simple idea, when implemented, requires many components to handle the details and turns into a mess. Textual code can be much more succinct. Perhaps with sufficiently smart tooling it's better, but I have yet to see such tooling. Better display and interaction (eg VR) would help too.
Dataflow is quite nice, and much of my code tends toward this style... with unix-pipe-like connectivity. There are cases where the linearity of text (code) is inhibiting -- an inline definition of a branching tree of processes can be unsatisfactory, as a bushy tree either has siblings far from each other or children far from parents, losing the spatial correlation.
2
u/jldugger Nov 09 '13
The problem I've always seen with this approach is that the complexity becomes too great to manage. A simple idea, when implemented, requires many components to handle the details and turns into a mess. Textual code can be much more succinct. Perhaps with sufficiently smart tooling it's better, but I have yet to see such tooling. Better display and interaction (eg VR) would help too.
The solution here is composition / encapsulation. You take a bunch of small blocks, wire them together, give the group a new name, and then only expose the inputs / outputs. Same tools we use in 'regular' programming.
1
Nov 09 '13
I do programming like this. I do Crestron Simp Widows programming. An example of some programming looks like this:
http://cdn.avsforum.com/6/6c/6c273705_vbattach165270.jpeg
It's generally terrible for any kind of fancy logic that isn't all digital. It works great for signal routing and simple logic. Also EE guys can start programming pretty quick due to it being similar to circuits. But there's all of intricacies to learn that are not that simple. There's a lot of weird timing issues and complicated propagation rules for complex systems. To get fancy things to work you need to understand things like buffers, shorting vs. break before make, signal jamming and other complex problems.
Writing something like an XML parser would be a nightmare. Maintaining and manipulating global state variables means they have to wire into any symbol that can change or use them. While good programming usually shouldn't do that a lot, the reality is that lots of times it easy and it works as long as you don't go to nuts. Try to write something as simple as a nested loop with lines and boxes, it's so complicated it's ridiculous.
It's good for signal routing stuff and just about nothing else.
1
u/jldugger Nov 09 '13
It's interesting you mention XML processing, because that's exactly what I use Yahoo Pipes for. In fact, XML's attribute naming is a boon, because the tooling can inspect the pipeline itself for options. Ie, it will tell you what elements you can filter on.
Now obviously, I doubt you can write Pipes in itself. You'll need a bootstrapping language the same way LabVIEW does. And at least in the short term, it kind of sucks having to write tools to support any given problem domain, but the world is gravitating towards DSLs anyways, so you might as well have a visual component if it helps.
1
u/LaurieCheers Nov 09 '13
It also reminds me of Unreal's Kismet scripting language, which works pretty well for simple prototyping jobs.
But yes, indeed, on nontrivial examples (especially when they let non-programmers play with it), the complexity does easily get out of hand. I've seen kismet spaghetti code you would not believe...
3
5
Nov 09 '13
People who don't learn from history are doomed to repeat it, and people have repeated the UML failure almost every 5 years. Maybe one day we'll make it, but we need to at least acknowledge the failures that have come before - Rational Rose, IBM Business Process Server, and even Java Beans - that promised that we could just wire up "black boxes", assemble them visually, and then run a program. It doesn't work.
It seems that the backers are either ignorant of this history or seem to hope that others are and will provide funding in spite of history.
2
u/ssahisnu Nov 09 '13
Yeah, seems easy, but still as code getting more complex, graph-based approach will become harder to manage than text-based. There are also many program that use this kind of approach, like MATLAB's SIMULINK. There is always some kind of trade-off for every method.
2
u/Sushisource Nov 09 '13
This is cool. And seems good, at first, for largely data-related tasks. And it might work just fine for a small to medium size application.
But imagine creating the equivalent of a million line+ high quality application in something like this...
Yeah right
2
u/snuggl Nov 09 '13
node-graph coding is introduced as the new thing every other year since as long as i can remember but it always fail because its not a good model to create complex software in.
1
1
u/poohshoes Nov 09 '13
I feel as though the flow based programming just forces the programmers to write modular code with low cohesion. Maybe this is good for bad programmers but for those of us who already write modular code with low cohesion is this really going to help us?
0
Nov 09 '13
Banking, Software, Sanity. Choose two.
But seriously what a bullshit article, don't know if a troll or an idiot.
22
u/bcash Nov 09 '13
They've got good marketing skills, the NoFlo team, I'll give them that. This same article, with some minor changes, has been posted in quite a few heavy hitting publications.
But still, get on with it. Just build the bloody thing, and we'll see if it succeeds or fails.
Personally I think it's crap, those "simple diagrams" look ten times more complex than they need to given the "old fashioned" code it's replacing.
Spare us these bad "software developers hate us, learn this one weird trick" nonsense. Show us some actual real-world successes. (Although that will be annoying too, in the same was Agile - capital 'A' - has a million cherry-picked success stories, most of which are embellished, or give credit to the wrong things.)