4,482 karma · joined Sep 28, 2012 (14y ago) · 2,101 submissions
I hope the spam filter will respect it!
comment 4y ago · link · parent
Certainly "Visual" is a spectrum, not an on/off switch. Adding syntax coloring to a textual program is a step towards adding visual cues that improve recognition of its parts. Scratch adds over an imperative language a more detailed visual syntax that conveys the types of control structures and the relations between actions and parameters, and allows filling them in by interactive recognition rather than pure recall; so it's a step further in transforming a classic language into a visual one.
Further steps in that direction include changing paradigms to functional or logic programs, that more explicitly represent changes in state through visual cues, relieving you from having to work them out in your short-term memory. Everything about visual languages is built towards adding expressiveness to the actual representation to convey as much information about the running program as possible.
> I still don't think this is a visual language, but it is maybe more visual than traditional visual languages. A spreadsheet is something like a visual layout on top of a program.
Programs are visual entities - they have a very concrete physical structure of a tree. That's why good indentation is essential even when the parser doesn't care about it at all.
A program Abstract Syntax Tree is composed of very, well, abstract components; a program keywords represent objects quite separated of their final form during runtime, i.e. their actual values, but their connections can be often understood in terms of their spatial relations. Our brain is really very good at that, even for textual representations.
> Even with a true visual language I don't think the need for a mental model can be removed.
Completely agree. But building a mental model is way easier when working at several levels of abstraction at the same time, i.e. both concrete values and the abstractions that tie together those values in a concept encompassing them (see the concept of the Ladder of Abstraction).[1] And being able to actually see the values of variables and the connections between processes that change them, instead of having to imagine all those by running the program in your head, is a large advantage. The debugger is the quintessential visual tool, letting you inspect the true relations and processes of a running program through interactive manipulation, even for languages that otherwise lack any visual cues while being built.
comment 4y ago · link · parent
I remember someone building a whole environment for making Slack look professional, by providing a text syntax that could nevertheless be programmed like Slack by adding and connecting typed blocks in the text structure (though I can't recall its name).
comment 4y ago · link · parent
I was referring to your defense of textual programming as inherently superior, which I don't see as justified. Classical languages have a refinement over decades that visual languages lack, but I think it is possible, and I think we are getting to a point where building such languages is starting to become viable.
> I'm not saying text entry is free. I'm saying that the palette concept is more expensive - even for visual learners
This is simply not true. Recognition is easier than recall, even for textual learners; so even if toolbars require more steps, those are way easier steps. Even if you're talking about expensive in time and not actual effort, physically entering code is the task that less actual time takes of programming: thinking what code you need to include takes much more time, so anything that reduces that time will accelerate development. Programmers usually are not aware of this fact because they are distracted by all the thinking, but the actual input method is usually not that relevant except for people with disabilities. (Btw visual vs word learners is largely a myth; the best style is usually to the task you're doing, and we are all able to do both styles. When I say I have a preferred style, I do find visual tasks easier than those requiring word recall skills).
Also, nothing prevents visual languages from incorporating fast introduction tools other than palettes, like keyboard accelerators and contextual search - i.e. you type the name of a component and it appears at the cursor point; this would make them work with identical interactions as pure text programs. (BTW, I consider intellisense-autocomplete to be a visual tool; it favors recognition over recall by showing you the list of available options).
What I consider a programming language is somewhat different from what think of as visual languages (which are primarly the flow-based block graphs; they have their place, but are too highly oriented to bulk data processing). For me, the ultimate visual language is the spreadsheet - a functional reactive environment where the user can freely position information and transformations in more than one dimension, and manually decorate them with as many cues, reminder text and color codes as needed.
Some new development environments are growing a modern style, highly evolved with respect to the classic IDE, which is still based on the batch model of the mainframes in the 60s:
* Jupyter-like notebooks bring some of the spreadsheet benefits to classic languages;
* relational models that show data together with structure, like Airtable, is an example of these breed of visual tools for building data-transforming automations;
* wikis work as visual storage that makes it easier to structure and organize hierarchical content;
and so on. Modern development environments will start incorporating all these models, relying less in pure abstraction and running the program in your head as requirements to build programs.
comment 4y ago · link · parent
And don't tell me that textual programmers don't realize the benefit of secondary notation and visually-conveyed details. We love when our IDEs full with syntax highlighting for different types of operators, global structure mini-maps and intellisense auto-complete tooltips. All these are visual tools that improve the flow of building a text-based program.
comment 4y ago · link · parent
I know for certain that this is how I see writing programs in pure text, to the point that I stopped programming in traditional languages; my brain is too high-level oriented to remember all the pesky little details that APIs and formal syntax require; give me high-level programming blocks that you just invoke and place with a few gestures any time.
Unfortunately there are very few general-purpose visual languages, so my options at building automated systems are limited; although fortunately this is starting to change, and a new breed of powerful no-code and low-code tools is appearing that shows promise, so I'll be able to build complex systems again by using high-level concepts as building blocks, without being slowed down by bloody trivial syntax errors.
comment 4y ago · link · parent
[1] For example https://www.kickstarter.com/projects/gdquest/learn-to-code-f..., an already financed Kickstarter to build an open source course and companion app.
comment 4y ago · link · parent
You seem to be unaware that SteamOS was a a resounding success in its primary goal: to stop in its tracks Microsoft's plan to turn the Windows OS into a locked-down walled garden that would run only MS-approved software* (by threatening them to switch the majority of gamers to Linux). Microsoft has never attempted such thing again to the same extent, and even XBox games are largely PC compatible.
That Valve has learned a lot about porting Windows games to Linux and they went through all the early labor pains, so that a few years later they have a robust and stable platform for their new competitive device, is just icing on the cake.
* For a hint of this backstory, see https://www.pcworld.com/article/394953/why-does-the-steam-de...
> it's just not going to be as smooth as a console with a dedicated OS. I'm guessing lots of people will install windows.
This is a console with a dedicated OS (which just happens to be Windows retro-compatible, thanks to Valve's Proton layer). Given the success it looks set to have, publishers won't be able to afford not to optimize their future AAA games for the device.
comment 4y ago · link · parent
I do the same with markdown in Zettlr, which has a nice inline-preview format and can be used by my non-tech partners.
The generated .docx has a limited range of styles, but we see that as an advantage.
comment 4y ago · link · parent
I'd say something like Docker containers, running a wasm engine, targeted by a lean library with a sane high-level programming language - either a santard-looking imperative language like Haxe, or some esoteric opinionated functional thingie like Julia or Elixir. (It could also be something like Vue, Angular or React, but those aren't exactly 'lean', being specialiced in working with the full browser DOM and web servers).
Each layer abstracts away the lower levels (virtualization & compartmentalization to run on any hardware, bytecode to run on any OS or browser engine...), allowing you to potentially use it without being tied to one specific implementation of that layer.
Higher layers provide increasingly more complex and powerful abstractions, with standardized code that's been created by experts in the field with efficiency in mind, and debugged through hundreds or thousands of client projects; making them likely more performant and robust than anything a single development team could ever build on their own (except for extremely limited domains run on dedicated hardware).
And ideally they have the plus side of working side-by-side with other applications or libraries, running in the same system without being engineered to work only with a single "official stack", allowing you to mix-and-match the best abstraction for each problem being solved, instead of forcing you into a single solution for all your software. That level of flexibility (plus the simplification of the layers below) is worth the runtime penalty imposed by several piled-up abstraction layers. That's why we don't code everything on assembly anymore.
comment 4y ago · link · parent
[1] https://www-archive.mozilla.org/docs/web-developer/samples/k...
comment 4y ago · link · parent
It's good that a developer has cursory knowledge of how those layers work (e.g. to avoid re-adding checks at the upper layers of something that is already guaranteed by the lower ones), but there's no need to be an expert at all them.
comment 4y ago · link · parent
Unfortunately, the entire software industry has followed a business model in the manner of consumer goods production, guiding each individual's entire experience through packaged products and services.
Rather, the capitalism inherent in unmediated peer-to-peer relationships could have taken the form of developers providing an open platform for users to create their own tools, and offering them the necessary training to get the most out of those tools.
Instead there are huge proprietary platforms that promise in their advertising to empower users and enhance their creativity, but are designed to do the opposite, capping any activity that seems dangerous to them and limiting actions to a small, safe subset.
comment 4y ago · link · parent
But I think that such a format should keep rich text separate from structure, in the same way that CSS keeps style separate from content. Content structure in a web environment is inherently complex, so there should be a standardized way to link markdown-style simple "pages" that have linear or shallow tree structures, to build the superstructure of a complete web site.
In my opinion that lack of a specific format for structure is what is limiting the growth of common tools for rich content. Wikis are the only example I know of an attempt to create such a format, but it works by having basically no structure, just uniquely named pages and hyperlinks between them.
comment 4y ago · link · parent
Any leakage of secret knowledge shared only through these groups could be detected as treason by one of the participants in that channel. Having several channels with fewer and fewer members, closer to the party's leadership, is a typical configuration to maintain control of the most secret information.
comment 4y ago · link · parent
Causal mapping [1] websites can aggregate the back and forth of heated discussions, eliminating emotional responses and distilling the core ideas of each opposing position. Such compilation of facts an argument in a readable, neutral format (e.g. see Kialo)[2] could work like the academic debates of old, allowing facts to be analysed in context and the validity of arguments to be tested on their own merits, not on their emotional appeal.
[1] https://en.wikipedia.org/wiki/List_of_causal_mapping_softwar...
comment 4y ago · link · parent
This is a disheartening yet frighteningly common problem with UI automation. It doesn't learn enough to actually be aware of the expected result, yet it can't be programmed to behave exactly as you want or need.
Automation in user interfaces should be exactly the opposite. It should try to learn your repeated actions so that you can perform them automatically, yet if the learning goes wrong, the user should be in control at all times and override the automatic deduced actions.
comment 4y ago · link · parent
If, at some time in the future, it manages to create a usable bridge to connect between two popular private services (say Whatsapp and Telegram, or Teams and Slack) it could start accumulating network effects, and become a desirable target for all other networks so that it is appealing for them to build their own bridges to the Matrix services.
comment 4y ago · link · parent
In the case of foundations, the aim is to establish a solid and complete base on which to build all subsequent knowledge; and that need not be easy at all.
comment 4y ago · link · parent
That's because the tools to exploit that collection suck. If we had processes generating statistics on your data and organizing them in practical streams of attention, it would be worthwhile to take that extra step in compiling them.
comment 4y ago · link · parent
However, all we got are lame attempts to replicate pen and paper in terms of annotation, with the only real improvement is instant text search, with very limited capabilities for incorporating meta data into queries. Where are the automated mind maps, statistics about how frequently you use terms in your discipline, inference of the times of day where we think about each topic...?
A programmer could built their own tools for that, but there is no standardized way to do them, it takes a lot of effort, there's no way to share the best practices that others use to their benefit; the best we've got is subchanels at Slack. And of course, all those capabilities are off-limits to end users.
Note taking tools are only now starting to explore those possibilities beyond the raw text file on hierarchical folders.
comment 4y ago · link · parent
His child books certainly have a deep second reading as adults.