by moron4hire · 10y ago · 0 comments
I was very curious to read this topic because I firmly believe we need to do much, much more work to make the full range of computing more accessible for people with disabilities. It's not just about equity--though that should be reason enough--but that systems designed for systemic handicap are also useful for situational handicap. I work from home and have a brand new, baby boy. I'm going to want to hold him a lot, but I currently need two hands and two eyes on my computer. Also, with the work I do in Virtual Reality, it becomes very clear, very quickly, that our UI metaphors are informed by and designed for 2D systems, and do not adapt well to 3D systems. The current market of VR being primitive also presents problems in that User Input schemes have largely been either overlooked or exclusively focused on gaming applications.
So I've been keeping my eye out for a more ergonomic programming language. I imagine a very high level language that makes functional tasks easy when I want FP, object oriented tasks easy when I want OOP, but perhaps doesn't go out of its way to try to marry the two.
With this article on Quorum, they talk up a big game about using studies on live subjects to figure out more ergonomic programming languages. I found myself nodding along the entire way and was very excited to see what they had built.
And then was quite deflated to see that what they had delivered is essentially a small corner of Java or C++ with no more changes than having all the keywords renamed. It seems they start with the assumption that OOP is the most natural, correct paradigm for all cases, and then only go so far as to test whether or not different variations of keywords are easier to understand as spoken language. I get renaming "for" to "repeat". I don't get how you're helping anyone with multiple inheritance, or boxed primitives for use in contajners, or Arrays that are really Lists, but also a separate List class.
With the direction they've gone, it does not impress that the people involved understand programming language theory beyond keyword replacement. With zero apparent effort put into constructs and semantics, it just seems like a dead-end of bodged-together shell scripts.
Also, the example code in the documentation would be wholly inadequate for a beginner. It is definitely written for an experienced programmer to learn how to map concepts in other languages to Quorum. The first example on each page does generally demonstrate the most basic usage, but subsequent examples don't actually demonstrate what they say they will demonstrate. In some cases they demonstrate how not to achieve what has been described, but then don't describe how to achieve it. And in at least one case, two entries in a compare-and-contrast example were identical. In a few examples, I'm not sure the example will even run.
There are a couple of issues with the research though that I have questions about. One is that, as most of us who program know, the syntax is just one part of it. The tools, the community, the documentation, the libraries and platforms, and so on all factor into our decisions and productivity when programming.
A second issue is more about the research. A/B tests and randomized trials are all great and useful. But that also is not enough. What is the theory or theories you are testing? I wouldn't choose a keyword over another just because one short, lab-based study showed a p-value under .05. You also need to do other styles of research to get a richer picture of what is going on, such as design-based research and qualitative research methods.
Their efforts seem to have been fundamentally focused on making beginner-level Java-style program code easier to understand when read out loud. That's a fine start. But it's still very low-level. List comprehensions, unified numeric stack, pattern matching, functional stream processing, etc., the general idea of making code composition easier, has not been addressed.
This is also a problem with FP, though. FP circles dress up these concepts in difficult-to-understand mathematical language and wallow in it as a badge of honor. I'm sure we're all familiar now with what has become a joke-line "a monad is a monoid in the category of endofunctors". Monads in usage are actually quite simple, and we can start to use them effectively without ever knowing that they are even called Monads. So a lot of work needs to be done from that direction, as well.
In other words, calculus might be difficult to learn, but it's easier than using arithmetic to understand change of functions. You don't make your programming language easier by limiting the constructs it has available. You make it easier by expanding them, so that the more difficult concepts are easier to lift, don't require as much low-level reimplementation without them.
UNIX didn't need to be full of obscure commands that are impossible to guess. The fact that it is locks out outsiders, but doesn't necessarily improve efficiency.
It's perfectly possible to make dev systems that are useful but not too complicated for beginners. Hypercard and VBA are just two examples.
But the language syntax is a small part of that. Ease of availability, and direct applicability - being able to see a clear personal benefit to writing code - are at least as important.
VBA isn't an outstandingly fine language, but a lot of people got a lot done with it - because it's obvious how you can save time with it, and that provides a motivation to use it.
The point of Haskell is more obscure.
> You make it easier by expanding them
I think it depends on the language and the target audience. You make it easier for developers by expanding them. But there are forces in CS that benefit from obscurity and Yet Another Framework - not least academic CS, and the GitHub scramble for self-promotion.
CS pretends to be mathematical, but languages and development systems are cultural and social phenomena, designed as much to promote or deny certain kinds of relationships with other devs and with technology as to get useful shit done quickly and easily.
> You make it easier for developers
Right, that is correct. But kittens eventually grow to become cats. I think you can have a simple base-system that doesn't require knowledge of the more complex devices, but still has them in the tool box for when the user grows.
Why should commands should be easy to guess? That seems like a bizarre property to expect of a command language.
UNIX provides exploration and discovery via man and apropos commands.
> The point of Haskell is more obscure.
That's a ridiculous assertion. The point of Haskell is to be rigourous. If that makes it obscure, it's only because the problems it's solving are also obscure and poorly understood.
Once you start requiring and providing proof, you've made a contribution. Saying "I believe" should is cause for stopping. If you can't even prove the simplest of assumptions, you have a starting point. That's where they are. Studies are time consuming and expensive and the project has been mired in the prequisite grunt work to challenge small assumptions.
makes functional tasks easy when I want FP
object oriented tasks easy when I want OOP
A high-level language doing this exists, it's called Scala. It does "marry" FP with OOP though, in the sense that FP is reconstructed as a specific form of OOP.In fact, there are many such languages, for example F# or OCaml. Dylan and Common Lisp both offer a very advanced object system on top of usual functional features. Smalltalk is inherently functional in its usage of closures (blocks) and so is Io and JavaScript and other related languages. There's also Swift and Rust, not to mention even Python supports many FP constructs.
offer ... object system on top of
... functional features.
This implicitly assumes that objects are a special case of functions. This is questionable. Scala goes the other way and recovers functions as special cases of objects. In my opinion that solved the integration problem of typed OO with statically typed FP. Javascript, Smalltalk et al are not statically typed.Almost any language having some kind of procedure mechanism. I'm not sure how helpful it is to take that alone as an example of supporting FP.