153 points · by miobrien · 9y ago · 117 comments
It would have to use standard pro level libraries and tools underneath, with the easy UI being essentially and abstraction over of subset of the functionality. This would allow it to retain great usability, but still with no limitations for advanced users.
Of course this hasn’t really happened yet, but I think it’s because the right balance, architecture, and respect for both user experiences has not been applied. It would also involve leading and tightening some standards to allow things to work together more consistently. Remember how things were before package managers? Why couldn’t there be a better way to standardize scaffolding operations and configuration for example?
I realize a lot of this seems to be pulling in two different directions, but so many of the pieces already exist, and so much of pro effort is wasted on grunt work tasks like getting things glued together that should be easier.
But if by "easy UI" you mean the visual programming language, or the graphical DDL, then I'm skeptical it has any value to programmers. No programmer I know would want to use a visual programming language at all, even with an option to fall into a full text-based programming language.
This is something that a lot of game and graphics programmers are doing already. UE4 uses Blueprints[0] now, with the ability for programmers to drop into C++ for more control.
I also think that having multiple ways to interact with programming languages is awesome from an accessibility perspective too.
[0] https://docs.unrealengine.com/latest/INT/Engine/Blueprints/
Yep, and they produce things which look like this:
https://forums.unrealengine.com/filedata/fetch?id=1137264&d=...
That's an A* pathfinding algorithm, it looks like this in code:
https://rosettacode.org/wiki/A*_search_algorithm#Python
On top of that, blueprints are stored in a binary format which can't be diffed, which means it can't be version controlled properly. I'm not sure blueprints would be my go-to example of not-terrible visual programming.
PlayMaker for Unity has the same problems.
Friends don't let friends use tools like that.
I started with C and then turned to VVVV [0] for a while (now using Python). VVVV enabled me to do a lot of media-related things, that I would have had a hard time doing otherwise. It still has a special place in my heart :)
[0] http://vvvv.org
It's only web developers who scoff at tools that improve productivity...
Back when we worked in the area, we could do 3-6 clients per day each, solving every task in a less than couple of hours, including conversation, problem analysis, coding, testing (manual, ofc) and receiving cash.
You'd be surprised. The biggest programming language in actual use is Excel -- which is a case of a visual programming language (turing complete at that), even if it has cells in a grid as opposed to some flow diagram.
And lots of people are programming with visual languages inside tools like compositing pipelines, musical environments like Max/MSP, CAD and 3D packages, business logic definition apps and so on -- with the most popular case perhaps being visual game engines.
Which has cost companies and investors billions and is the most accident prone. http://www.zdnet.com/article/excel-errors-microsofts-spreads...
No Version control no way to audit your code. These also come with visual programs.
My favorite analogy: Visual programming languages are like a foreigner going to a Korean McDonald's. He can grunt at pictures and get what he points at, but he can only do a limited set of things that were envisioned by the menu planner. You can't get the burger without tomatoes by grunting.
Here! But perhaps not as in typical visual programming tools. When I programmed ABAP which is traditionally heavy on methods/functions with lots of in and out parameters I always wished for the possibility to just drag some lines between parameters I want to map without having to declare and use intermedia variables.
From regular developer point of view, I would like to operate blocks that merge/sort/filter datasets (dataflows), visually presented almost the same way they are in conceptual electronic blueprints, where output pin arrays are connected to input pin arrays, both having different names, but wires themselves unnamed. Current flow is not much different from datasets flow.
But the basic idea: data-flowing through visible pipes is valuable. For one thing, functional programming shows that movement-of-data is a viable programming model. Secondly it's a great way to trace causality, helping with those debugging sessions you ask "how did this thing come to hold the value that it holds".
I'm developing my own dataflow language. Before I began, I had already programmed in many different languages and even designed some of my own languages and dialects.
I came to several conclusions about how visual dataflow should be done, which are different from the approach taken in LabVIEW and other visual dataflow languages such as Prograph, Max, and vvvv.
(1) You should only be able to connect vertices (i.e. functions) when their argument/value types are compatible. This allows you to drag an edge in the right general direction and it will find what to connect to, and also means you can develop a powerful type system with type inference built into the editor. This makes the language safe, but why stop at Hindley-Milner? You can add units (metres, flight levels, dollars, etc.) to real number types. You can give the language dependent types to make it even safer. This would eliminate many errors inherent in developing in other languages. And with a good enough type system, you don't need object orientation.
(2) You can keep the language design simple. You don't need special constructs for things like iteration and conditionals. All you need are vertices (where processing is done), edges (along which values flow), constant values, and enclosures/lambdas.
(3) Iteration can often be abstracted away, by having filters operating on streams of data instead of single data items. It might be worth adding an even higher level, with bidirectional flow between processes or agents.
(4) You can define new types by connecting existing types, just like new functions can be defined by connecting existing functions.
(5) Version control and project management can also be done graphically.
I encountered, and solved, some little-known problems associated with dataflow.
My language isn't yet ready for release. (There's only one of me, not a large team.) I've begun work on dependent types. I need to develop a non-trivial application, for which I have a few ideas. The language also needs a compiler. I'll add version control and project management when there's any commercial interest.
Documentation (which I need to update) is at
http://web.onetel.com/~hibou/fmj/FMJ.html
The papers on the site describe obsolete versions of the language but are still worth reading. The tutorials are more up to date.If I could stay on the whiteboard with my pen and compile parts of my program from there, that would be awesome.
Btw: I tried some "Smart" Whiteboards, but they are all just bad quality. Real whiteboards are still superior for whatever you do with whiteboarsd.
FWIW, it took 10x as long to get the DLL call to work as it did to drag-and-drop the coefficient of variation box into the GUI. There are certainly rapid prototyping benefits to be had with higher-level languages. Nowadays I prototype in Python and rewrite line-by-line in C++ if I really need the speed. I think GUI programming languages might serve a similar purpose.
I don't understand how/why people do this? the languages are so different I can't imagine doing it - libraries, control structures, types! what exactly are you prototyping then? just the shape of the code?
man that makes even less sense to me. do you have an example of code produced this way?
https://bubble.is/page?name=index&id=todomvcapp&tab=tabs-1
It's actually pretty impressive and seems mature.
[0] https://manual.bubble.is/building-plugins/building-actions.h...
Disclaimer: I'm the founder, but didn't initiate this thread. Happy to answer questions though.
My question is: So one big strength of textual languages vs visual tools(and DSL's) is expressivity - visual languages are limited to their specific domains, while you can use, say, python to build complete systems.
Do you see this distinction remaining ? or we'll have some way to build multi-domain systems visually ?
Yes, this distinction will probably remain, but we're trying to push where we need to get back to textual languages. If you need to build a machine learning algorithm, I'm not sure visual tools will ever be the way to go (though i'd love to see this).
But both ways work well together. In Bubble, you'd build your optimization algorithm as a plugin, and then you (and even better, others, non technical colleagues) will be able to use the action you've built visually. The Bubble interface becomes the common language between business, product people and coders.
On the other hand views should be much more data-oriented. For example user actions should be copy-pasteable, editable as data and therefore usable for automation. -Text? Easy "it has been since 60's". -Visual (button click, drag&drop etc.)? "IMPOSSIBLE!". I claim that it's just bad habit which started as "MVP"-syndrome, continued as "Typical user won't..."-syndrome and finally ended up to "This is what GUI is"-syndrome.
Yea I think I may cut some corners but I cannot see any fundamental barriers here. Therefore I am currently researching this area and hopefully get something out at some point (or die tryin’).
I see people struggling with tools like Google Calendar, physical security alarm systems and parking a vehicle in a tight location. They don't apply basic problem solving, and without developing that skillset these kinds of tools will continue to be useless for that demographic.
Though for simple tasks, syntax is the biggest blocker, and visual programming is preferable. See the success of IFTTT as an example.
There has to be a silver bullet though. I haven't seen a large system which couldn't be implemented in less than 10% of the code. Chuck Moore, the inventor of Forth, says 1%.
There are some tools(if you want i can look later) that you input math and you get fully optimized code for a variety of architectures, so it's kinda 1%.
Ummm, no. That's just rude.
Personally, I very much prefer people to ask me for a social, rather than storing my password.
> Public and private
I've not developed with the GitHub API, so I don't know if that just comes with the type of scope they're requesting or what. Still, wonder why they're requesting such access?
for example here are ides for react:
I believe this is just a stop gap, there should and hopefully will be a multiplatform delphi of sorts in the future that will also target wasm/html/js/css
to target wasm as a first class citizen we should make sure libraries such and xlib (because you can build gtk and qt with it)/win32/cocoa have clones/implementations for wasm for example
We have been working on a visual tool[0] for ourselves and the development speed gains are incredible. Hopefully, there will be more non-text based programming environments.
There isn't any information about what kind of programming language Bubble is. Visual languages are usually either procedural (Drakon, Scratch), or dataflow (Prograph, LabVIEW, Max, Full Metal Jacket) or its variant flow-based programming. There have been a few attempts at functional ones too, I think.
It's obvious a lot of work went into it, and there might be a few good user-interface ideas in Bubble, but it's hard to tell from the web site.
http://drdobbs.com/vnos-the-visual-network-operating-system/...
I think there would be room for something like Delphi or VB for web apps though.
It's kind of interesting that after all these years text is till the best representation for software.
Which you're going to have in any non-trivial program.
This is a problem specific to particular dataflow languages. I've solved it without adding complexity.
Loops: http://web.onetel.com/~hibou/fmj/tutorials/Iteration.html
Conditionals: http://web.onetel.com/~hibou/fmj/tutorials/Conditional.html
Some non-trivial code: http://web.onetel.com/~hibou/fmj/tutorials/GregorianCalendar...
MIMD programming is built into the language at its deepest level, so threads aren't an issue.
Its a VB/Delphi style app builder for the web. It's got a visual UI builder, with Python code behind it (client and server, with RPC between them).
I think a hybrid like that, where the visual aspect controls the order of the program steps, where as the steps are encapsulated and implemented in code can be pretty powerful. Not sure it would work for all domains though.