4 ms·
> I was thinking vaguely about investigating graphic-based programming, but it's probably worse, IDK. It could automatically assign arbitrary icons* instead of
by pjc50 2y ago
> I was thinking vaguely about investigating graphic-based programming, but it's probably worse, IDK. It could automatically assign arbitrary icons* instead of identifiers, and you could write tooltip-like comments to describe them as and when you want to, and everything could be laid out nicely with diagrams and different pages instead of like a text file.
Have you ever read large electronic schematics? That's basically it .. except all the important things have to be identified by text anyway, because it's a massive challenge to the imagination to come up with two hundred different pictograms.
Of course, if you really want your identifiers to be pictograms, why not just use kanji for your identifiers? The Japanese language and Unicode provide tens of thousands of ready made pictograms for your convenience!
The only nonlinear programming environments that have really worked are the spreadsheet (which is still linear within each cell) and Labview. Possible shoutout to Unity blueprints, but when those get too complicated sphagetti .. people rewrite them in linear text code.
- card_zero 2y agoSigh I guess you're right. This has been a dimly-felt wish of mine for some 25 years, but probably pie in the sky. Edit: I see there are a lot of visual programming languages. https://en.wikipedia.org/wiki/Visual_programming_language https://en.wikipedia.org/wiki/Visual_programming_language
- 9dev 2y agoI don’t think that has to be the answer, though. We can probably all agree that plaintext code is not the best form to represent the schematics of a process, and neither are images. But that seems to be a very limited set of options, and I wonder if there aren’t any other dimensions to express what is essentially persisted chains of reasoning. For an example of alternative modes of input, have a look at the Reactable, a pretty innovative way to compose music. Sadly I think they didn’t disrupt the music industry as they should have, but it’s a pretty good example of a new way to think about making sounds. Edit: forgot the link. Here is: http://reactable.com http://reactable.com
- WillAdams 2y agoLonger than that --- I would argue it goes back to Herman Hesse's _The Glass Bead Game_ (originally published as Magister Ludi) --- but Hesse seems to have gone out of style. That said, I keep trying various ones, and will keep hoping that someday someone will make a graphical tool able to make a GUI program. Nodezator seems promising.
- auxym 2y ago> Have you ever read large electronic schematics? That's basically it .. except all the important things have to be identified by text anyway, because it's a massive challenge to the imagination to come up with two hundred different pictograms. As a mechanical engineer who works with Labview and Simulink, as well as more conventional code (python mostly), that is indeed a very good description. First glance at a large labview program feels very much like first glance at a large and complex electronics schematic. Lots of wire everywhere and you're not even sure where to start. I think a nice "best of both worlds" approach is a graphical "high level" view which shows the flow of data, at least for "data transformation" kind of programs, and code for the low level logic (what actually happens in the blocks). Sort of like nodal editors in Blender and NLE apps. Fortunately Simulink makes it easy to drop in a Matlab function call, Labview not so much (need to get into C FFI or use a really old version of .net or something). The thought I have about spreadsheets (might have read that on here), is that spreadsheets make the data visible and hide the code. Text-based programming hides the data but shows the code. I'm not sure what something that makes both code and data first class and visible would look like, but I'd be curious for sure (for engineering type applications at least). Best I've found so far (and what I actually for a lot of data processing tasks) is a Jupyter notebook making plentiful use of df.head() and df.plot().
- School-Cotton 2y agoIt's odd to say those characters come from the Japanese language when they were invented in China to write Chinese, are still used for that purpose, and were only introduced to Japan 2000 years later.
- deleted 2y ago[deleted]
- taneq 2y ago> The only nonlinear programming environments that have really worked are the spreadsheet (which is still linear within each cell) and Labview. Possible shoutout to Unity blueprints, but when those get too complicated sphagetti .. people rewrite them in linear text code. Not 100% sure what you mean by 'nonlinear' here (flow control?) but almost all industrial and mining equipment is programmed in visual languages on PLCs. Ladder Logic looks like, well, a stylized electrical drawing of a bunch of relays wired up to perform logical operations. Function Block Diagram looks like a PCB layout, but the 'integrated circuits' are function blocks (basically functors) and the 'traces' are copying data between between the function blocks. Not great for implementing hardcore algorithms but you can do a surprising amount with them (once you get used to coding with both hands tied behind your back) and they sure are accessible to people who otherwise wouldn't be programming. Of course, as you say, when things get genuinely complicated, it's much nicer to use a 'real' programming language (or even just Structured Text, which is pretty much just Pascal). Then again, even with electronics, once things get complex enough don't we start using text (eg. VHDL)? Expressing designs is always a tradeoff between simplicity and 'obviousness' on the one hand, and representational efficiency on the other. Structured text sits right in the sweet spot between the two.