Haskell in the Newsroom [video]
infoq.com
infoq.com
The slight cost I have found though is that a lot of the tools he mentioned have a rather steep learning curve ( monads, parsec, repa, conduits, lens ) especially for those coming from an imperative background. But learning any of them is an investment in your programming skills that pays off ten-fold down the road.
(This is not to say that testing isn't necessary--in fact Haskell offers an amazing framework for fuzz testing, QuickCheck--but 100% code coverage unit tests is a pointless endeavor in Haskell.)
I will say that "rapid prototyping" of new applications is a bit tedious in Haskell (mainly because of the cabal etc. bootstrapping work you have to do), but prototyping new features in existing ones is smooth.
Edit: My bad - I missed the 100% part.
Thirsteh said 100% coverage of unit tests is pointless, not that unit testing itself is pointless. I'm not totally sure what thirsteh means by "100% is a pointless endeavor" though.
Personally I very much enjoy unit-testing in Haskell especially with the new tasty library which makes combining all the Unit/QuickCheck/SmallCheck tests very pleasant.
How is this even possible? Haskell can't catch the logic errors done over time and space, and these errors are the majority of errors in all programming languages, Haskell included.
It's true, to some extent, with other statically checked languages, but they usually don't have separation effects, sum types, etc.
So it's 9 times of ten if you know what you are doing, which is hardly the most often case.
If you don't at all know what you're doing, you're gonna fail every time, anywhere. It is obviously subjective, and I don't think I implied otherwise.
Do you know what sum types are? If so, won't you agree with me that there are many kinds of errors you can make in languages without them than in ones where the compiler complains if you haven't e.g. covered each constructor in a pattern match?
Even more so with separation of effects, and other things that only really exist in Haskell.
Not really. In programming, most of the time you think you know what you are doing but you really don't remember all the states and all the details, which results in bugs.
> Do you know what sum types are?
I do.
> If so, won't you agree with me that there are many kinds of errors you can make in languages without them than in ones where the compiler complains if you haven't e.g. covered each constructor in a pattern match?
In non object-oriented languages or in object-oriented languages without abstract methods, it's certainly possible.
In object-oriented languages with abstract methods, it's not possible: for each missing case the compiler will complain with an error.
> Even more so with separation of effects, and other things that only really exist in Haskell.
Separation of effects doesn't really improve the situation with bugs. A bug may have its cause inside a pure computation.
We create these problems for ourselves when we write languages with complicated grammars. And for what? So people don't have to learn how to read Lisp code? A lot of the gain of Haskell is that the super strong type system constrains the form of programs, making it easier to reason about them. Well, constraining the syntax has similar benefits. One being that now my editor can more effectively "reason" about the surface syntax of a program. See Paredit, which enables functionality that isn't possible unless you can easily find the extent of an expression.
Now imagine a pilot saying: "fighter jets have a fairy shallow learning curve compared to gliders"... Syntax has nothing to do with it and you will never find a language with simpler syntax than Lisps.
(and let's just pretend Common Lisp does not exist - I bet you are scared by Lisp because you've seen code written by an experienced CL hacker, and I know, it tends to scare the shit out of you at first sight :) )
On top of that, because he gives examples from "Fashion week", I can watch his presentation with my girlfriend who has absolutely no programming skills whatsoever but thinks it really cool! Gives a bit of perspective that programming isn't only about making boring web-apps. (Of course the game-industry proves programming can be fun, but this shows a different aspect than games.)