News for hackers. Stuff that matters.
Re:Do notation considered harmful by cousin_it on Wednesday April 29, 2020 @04:52AM (#23016940)
Yes, Excel and SQL are widely used by non-programmers due to some engineering quality. But whatever that quality is, Haskell (very narrowly used even by programmers) doesn't seem to share it.
Re:Do notation considered harmful by otabdeveloper4 on Wednesday April 29, 2020 @05:29AM (#23017175)
I'm trying to say that whatever makes Haskell unpopular, it's not its declarative nature.

Whoever manages to make a purely declarative general-purpose programming language will be a technological superstar, because for normal non-programmer folks it would be the ideal gateway to programming.

(That said, I don't think it's possible. 'General purpose' implies some sort of Turing completeness, i.e., recursion or loops, which immediately makes it impossible to reason about in normal declarative terms.)

Re:Do notation considered harmful by wwright on Wednesday April 29, 2020 @07:47AM (#23018017)
I think we can be a little more optimistic than that. I agree that it’s probably a white whale to try to build a language which is fully declarative 100% of the time, but if we can make something that is simple and declarative 80% of the time, but falls back to something as graceful as Python for the other 20%, that may be enough to have a really big impact.
Re:Do notation considered harmful by pjc50 on Wednesday April 29, 2020 @06:08AM (#23017428)
You would have to add some kind of statefulness, which I suspect is the thing that those people are having trouble reasoning about (and which is also an argument for making things immutable even in imperative languages!).

"Statecharts"? Some other kind of boxes-and-arrows Moore/Mealy machine visualisation?

Re:Do notation considered harmful by goto11 on Wednesday April 29, 2020 @06:37AM (#23017609)
Non sequitur. Excel shows that declarative systems can be popular and easily accessible by non-programmers. Not that any declarative system will automatically be popular!

It is an interesting observation that declarative logic apparently is more intuitive to non-programmers than it is to programmers trained in imperative programming.

Re:Do notation considered harmful by cousin_it on Wednesday April 29, 2020 @07:36AM (#23017961)
To me a more likely explanation is that non-Turing-complete languages are easier to understand overall, but among Turing-complete languages, imperative is easier to understand. The popularity data seems to bear it out.
Re:Do notation considered harmful by goto11 on Wednesday April 29, 2020 @08:07AM (#23018137)
Isn't Excel Turing-complete?