by torben-friis · 6y ago · 0 comments
> Thus, instead of our discourse being about semantics, engineering quality, and implementation, we instead discuss our tools in terms of social factors and emotions (i.e. it “feels readable”, “feels usable”, “feels fast”).
Thinking about readability or usability as emotions and social factors, rather than as first level concerns, is a non starter to me, and I find it extremely off putting that the author seems to pile up those qualities in the marketing "group", as if they were not real properties of a language.
You can design a drill in a way that makes it the most scientifically correct at using the power it's supplied efficiently, but if the design hurts the users hands and requires months of training to operate, any worker will throw it in the trash, because they can drill things just fine with a regular tool.
(I'm not necessarily saying that Haskell is that drill, just saying that usability should never be treated with condescension when you're designing tools).
Many of us found imperative (and other non-mathy) programming styles immediately easier to understand, regardless. Me, I have to translate mathematical statements into "programmy" style to have a hope of understanding it ("OK so what does this term/operation 'do' in isolation?") and keep a crib sheet handy for WTF all the single-character bits (so, usually all of it) mean.
[EDIT] my point being, that preference doesn't seem especially "emotional" to me.
Sure and some people like it some hate it (according to western popular culture most people hate it). Also even if someone loves doing school algebra if no one tells them that you can write code that way they'll never know. If you only expose them to imperative Hello World code then of course they'll relate to that. Conditioning, familiarity and experience matter a lot.
> Many of us found imperative ... programming styles immediately easier
Immediately as-in you've been shown an imperative and a declarative Hello World and related to the former? Or you've only been shown the former? See my earlier point.
> I have to translate mathematical statements into "programmy" style
Same point as above. I did that as well for ages in the past, now I have to do the opposite.
> my point being, that preference doesn't seem especially "emotional" to me.
Maybe emotional is indeed the wrong word. But it's definitely not logical either and I'd also say it's not inherent, ie. people can change (I know I did) but at that point we'll dive into nature vs. nurture and that never ends :)
So it isn't that those things aren't important; just that they are subjective
What those features are, rather than subjective, it's contextual, and I feel that behind the author's phrase might lie the usual complain by functional programmers that non-functional languages just feel foreign because people are usually taught other styles during their learning process.
As an explanation, that might be partly true, but it being true doesn't really save you from the fact that if you want people to use your tool, you have to make it easily usable, and usable for real world people rather than for spherical cows.
Do we have any objective metrics? The only thing I can think of is all the (inconclusive) studies about error density. Unfortunately error density is a very far cry from measuring the overall quality of a software product, or the mental effort that was required to produce it, or the mental effort required to maintain it.
> there are thousands of people whose job is precisely optimising usability for many products
Yeah but programming languages are more abstract; they're tools of thought (just like mathematical objects), and optimizing their use is nothing like observing a user press the buttons on a machine to get themselves a cup of coffee.
Controlled studies are very difficult to run, for obvious reasons. (Unlike for the coffee machine)
I'd contend that the immutability of containers and why Docker is such a win might be getting Haskell to its moment.
For me, the hardest unlearning piece isn't the syntax.
Rather, the impact of the purity on the execution model is the stumbling block.
Monads seem arcane because laziness + purity = statelessness, which never really had tangible meaning until the idea that a Docker image is also stateless came along.
Maybe some cruder, crayon-level examples can be devised to help us slow folk get there.
+ a win for cloud when combined with kube to understand exactly what's being exposed
haskell isn't simple or understandable
it's flexible but I have no idea what's happening where
effects are getting folded in from all over the codebase
all the type abstractions are for injecting code from somewhere else