News for hackers. Stuff that matters.
Re:If monads are the solution, what is the problem? by marcosdumay on Monday July 30, 2018 @03:29PM (#17647256)
While programming, I end up reading the source of most badly documented packages on Hackage that have some interface that looks like what I'm doing. Nearly all that mostly low quality (correlates pretty well with lack of documentation) code is perfectly legible (although some have other problems).

I have never seen any language get near Haskell on the legibility of random code on the internet.

Re:If monads are the solution, what is the problem? by skgoa on Tuesday July 31, 2018 @05:43AM (#17651796)
I have found that Java enforces a higher floor of readability than most languages, simply because you have to type out so much "boilerplate" for everything. Though even that does not come close to Haskell. Ironically, the introduction of lambdas made bad Java code using them far less readable.
Re:If monads are the solution, what is the problem? by marcosdumay on Tuesday July 31, 2018 @05:36PM (#17657425)
Yes. On my eyes Java was always the clear choice for enterprise code, because people come and go, and one bad apple does not destroy the entire code base on Java.

After I learned Haskell I had a "I knew nothing!" moment. Anybody writing enterprise code on anything that is not as safe as Haskell (that is, basically everybody) is letting a lot of money on the table.