I haven't read the book myself, but is the book really so good that we can go from "Immature" to "Mature" with the release of just one book? I find that to be a bit strange considering Haskell is a very complicated language; I have a hard time believing a single book (that is beginner friendly no less) could really explain everything there is to know about Haskell.
The beginner parts were _a_ gap, but they weren't the only gap. In fact, none of the existing books really went very far beyond Monad, with only RWH covering monad transformers.
So, part of the appeal of the book isn't just that we cover beginner topics better, we cover _everything_ from beginner to intermediate/advanced that you're likely to apply in order to, say, make a web application. And in fact, we use a micro web framework in Haskell to demonstrate stuff in the later chapters.
It may not seem like it, because chapters like "data structures" actually cover - profiling time, profiling memory, containers, benchmarking, constant applicative forms, avoiding memory leaks, etc.
We'll be updating the site to explain what each chapter covers in more detail soon.
I've spent a couple years teaching Haskell and haven't found LYAH to set anyone up for success in Haskell. They usually hit a brick wall because they don't have either the foundation or intermediate idioms to really get anywhere. So there's usually a 45-days-in-the-desert period after LYAH where they have to muck through tens or hundreds of blog posts to plug all the gaps.
I talk about this here: http://bitemyapp.com/posts/2014-12-31-functional-education.h...
Suffice to say, I would've happily written a much smaller, shorter book - but this was needed.
Edit for clarification: Full Stack would be app server up. So runs a server (some sort of process/thread/worker management), server scripting is in the same language (can auth, process requests, interact with a DB, etc), and build the view (simple JSON/blob response, build html, etc). I exclude client side form this, since most of the X for client-side projects end up transpiling into JS.
Haskell makes it so easy to write correct concurrent code it's not even funny. GHC's magnificent IO manager means I can handle 1000s of connections on one amazon instance. Can't understand why you wouldn't be using Haskell for server-side web development.
No other popular server-side language supports concurrency (see STM, MVar's, and Chans), transparent futures/promises for I/O (the entire IO monad in GHC is non-blocking), support for multiple processors (Just add +RTS -N<n> to make your program scale to n processors), and a blazing fast HTTP server (warp).
I can't tell whether that's just a rhetorical flourish, so I'll answer straight.
To begin with, there are a couple of concerns that might kill an attempt to use Haskell.
1. I might not be able to get management approval. Haskell is an obscure language with a reputation for difficulty. The bosses might well say no. 2. I might need to work with an existing codebase in something like Java or Python. Not possible from Haskell.
If those don't kill the project, there's the cost-benefit tradeoff. On the benefits side: 1. Haskell code is very concise. (definitely) And greater concision means faster development. (possibly) 2. Haskell code is less likely to contain errors, because of very strict typing. (probably) 3. Haskell coders are disproportionately capable, because the language is obscure and difficult. (probably)
On the costs side: 1. I have much more experience in other languages. It would take at least a year, maybe two before I'd be up to pro standards in Haskell. 2. The community of Haskell programmers is small. It might be difficult to hire anyone if the project grew; I might be faced with training someone from scratch, not just in a new language, but in a new programming paradigm.
So, this isn't anything like a slam dunk. Quite the opposite, actually. There are a couple of issues that might nix the project right up front, and then a daunting cost-benefit calculation.
I think right now the lack of educational materials and overall difficulty of learning it make it impractical for industry use unless you plan on only having a very small team. I don't know what 10% you are referring to but I personally find performance analysis to be a huge issue due to the laziness. I suspect this is largely due to the lack of educational materials which is why I'm a little skeptical that the release of one book will suddenly make it all okay as the article seems to suggest.
Still, I find the language itself a complete joy to use and use it almost wherever I can.
It already is. If you are talking about a full stack web application, there are several fully featured production quality frameworks, Yesod being the most popular.
What are the negatives to you? Long compile times? Monadic IO? Memory leaks from lazy eval?
Aside from the solid compiler ghc and many libraries, the ability to write less, more reliable software. That's the objective isn't it?
Another reason is the increasing number of usable languages written in Haskell. Using say Purescript, elm or other front-end languages, it may be as important as knowing Haskell as know C is for Python, for example.
For us older engineers, full-stack was hardware up to OS up to apps. Quite a few projects did that. Haskell is more full stack via that definition given it can build hardware (Bluespec), OS's (House), system code (Ivory), and web apps. Worst case, use it as a DSL to output the language of your choosing like 4GL's used to.
We're using Haskell for server-side programming at my work and it's been fantastic. Functional programming is so well suited for stateless web services.
Going through the post, this looks like a comprehensive book. Read the rationale behind, 'how to learn Haskell' from author. [2]
[0] "Reflecting on Haskell in 2015" http://www.stephendiehl.com/posts/haskell_2016.html
[1] "Building a modern functional compiler from first principles." http://dev.stephendiehl.com/fun/index.html
[2] "Why we don't chuck our readers into web apps" http://bitemyapp.com/posts/2015-08-23-why-we-dont-chuck-read...
"Improving IDE support is the single easiest way to lower the entry barrier to newcomers."
The plugins for vim and Atom do a really good job for auto-completion and showing linter/compiler warnings, but they are a bit hard to setup initially.
I recommend getting comfortable with the sorts of libraries you'd use at work before trialing to avoid what fizbin mentioned elsewhere in the thread.
tl;dr create, don't take, a Haskell job
I use Emacs, IntelliJ, and TextMate for Haskell. I love all three.
I thought the best part of this article was the coverage of libraries because I find myself to be uncertain of selecting the most appropriate ones. I use a small subset of Haskell but that works for me.
As for why? We make certain you actually learn everything you need to know and we _aggressively_ test and review the material with actual learners. My co-author Julie's first programming language is Haskell, which she has learned from me and while writing the book.
Here's a screenshot from our Zendesk for processing reader feedback and reviews: http://imgur.com/EdpL4ql
We are writing the book because I've been helping people in IRC (#haskell-beginners mostly which floats around 300 users), on Twitter, etc. I saw too many people burn out and give up with the existing resources (free & paid), despite maintaining a guide for learning Haskell with free resources: https://github.com/bitemyapp/learnhaskell
It's just harder than it needs to be, so we're fixing that. Even the better existing books/resources don't cover nearly enough for somebody to move on to, say, writing a web application.
I wrote about the pedagogical issues with some of the existing resources here: http://bitemyapp.com/posts/2014-12-31-functional-education.h...
If you didn't find it difficult to learn Haskell, that's great! But most people find it intensely difficult and I think that's completely unnecessary. I've given a talk on this titled, "Learn Haskell in less than five years" located here: https://www.youtube.com/watch?v=Bg9ccYzMbxc
I stand by my minor complaint that the article was deep in praise for your book and I thought minimized the impact of the many fine existing books on Haskell.
Good luck with your book. I like your enthusiasm.
"....Understanding algebraic datatypes requires understanding products and sums. Understanding products and sums requires understanding addition, multiplication, types, cardinality, type constructors, and data constructors...."
By the time I reach cardinality I wonder if maybe the author is more interested in making things sound intimidating than helping? Or will readers be quizzed on the Continuum hypothesis?
"Why can’t I learn Haskell the way I learned $BOZOLANG?"
...I hope the book itself won't take this tone. The community doesn't need it.
[0] http://bitemyapp.com/posts/2015-08-23-why-we-dont-chuck-read...
I'm overstating my case in that post, but underestimating how hard this currently is doesn't change that there are things you'd want to understand before diving into a Haskell web application. Part of this is on the framework designers, it's mostly/only Scotty that has made any attempt not to incorporate concepts that would be difficult for beginners and it's more "hiding" than "not using".
You don't need 100% grokhood all along the way, but the current status quo is that people frequently flounder and burn out because the resources they _did_ use didn't explain things usefully or cover enough. This is not conjecture, this from a _lot_ of time spent working with people hands on via IRC and Skype and curating a popular guide: https://github.com/bitemyapp/learnhaskell
>"Why can’t I learn Haskell the way I learned $BOZOLANG?" >...I hope the book itself won't encourage the stereotypes about Haskell the way this post does.
The stereotype that I grew up reading c2 wiki and hacker lore? I've spent most of my career so far writing C#, VB.NET, and Python. I don't even really mind a bit of Python here and there, but I don't have much cause to resort to it any more except for Ansible.
As it stands, our readers have been taking breaks from the book to successfully work on side projects starting at about chapter 9 through chapter 26. Different people find there are different spots in the book where they can step away and get things done. The point is that the rest of it is always there if they need it. Education-by-blog-diaspora has not been terribly successful for many Haskell beginners up to this point. Partly because there aren't enough people for there to be enough angles on something that beginners can reliably find something that "clicks" for them. Another problem is that you want exercises to thoroughly understand a different way of thinking about and putting together programs.
In the end, it feels little different in my head than when I'm writing in something imperative, but the experience is more difficult than it needed to be for beginners for a long time. The book is me "scaling up" my ability to help people. Like it or don't, whatever, but please don't try to make a blog post I wrote into something it isn't so you can try to take me down ad hominem.
>...I hope the book itself won't take this tone. The community doesn't need it.
You can find out what the tone of the book is by checking out the sample provided on the book's website. No need to speculate. As it is, the tone is light but to the point. Readers have enjoyed the dry humor which is not at all like how I write on my blog. Which people have liked too. You should spend less time on HN commenting on things you don't like.
I have writing to do. Goodnight.
You're right. I shouldn't have implied anything about the book based on this blog post. That's unreasonable. I have things I dislike about this post, but that doesn't imply anything about your book.
I should've been clearer when I first wrote my post that there's no major content in your post that I disagree with. There are a lot of things to learn before you can write actual applications in Haskell (I've been at it for awhile, and am just really getting to understand Monad Transformers). But I do think that paragraph is a bad way to put the point. It reminds me of when a student two years older than me tried to intimidate me by asking if I knew what a RECIPROCAL was.
I also think that the $BOZOLANG comment is a bad idea. Haskell has a stereotype that it's users look down on everyone else. You may think it's a nice little joke, but I'm not sure if it will translate to people who already worry about whether they're smart enough for Haskell.
> For a long time vim and emacs were the Haskell editors of choice. Now more traditional IDEs like Atom and IntelliJ are starting to get Haskell support
As a Lisper, I'm still stuck with emacs as the best-supported tool, and that's kind of a sorry state of things.
What has been most frustrating for me is not really the quality or availability of books or learning materials. Instead, it has been hard to deal with the variability in the opinions of veteran Haskellers as to what it even means to be a beginner.
For example, in one job interview I had, the people interviewing me (several of whom had used Haskell for 10+ years) were very impressed by simple things -- using ADTs to model a take-home programming problem; knowing about tail-call elimination and how it impacts folds and when to write something with a helper function; basics of type classes; and fluency with Monads perhaps just slightly beyond what is discussed in LYAH.
In another interview, someone right off the bat asked me to explain Arrows in great detail. I admitted I didn't know anything about Arrows except that they were in some sense a generalization of the "context" view of Monads.
Another interviewer once asked me frightening questions about Template Haskell and using it for SQL queries (e.g. HASQL).
Yet another asked me "design" questions about multi-parameter type classes and multi-parameter ADTs. I could point out examples of the latter, like Either, and I could name-drop the idea of Phantom Types because I heard it once in a Haskell lecture, but I tried to communicate to them that I didn't have any real command over these things in a real-life situation.
It's frustrating on one hand because it makes it seem like there is no path, of any kind, from beginner to intermediate. It's like a Heaviside functions or something. You are just a beginner until one day you're suddenly not.
It's kind of like playing Marco Polo in a swimming pool too. One person's yelling from that corner about Arrows. Someone else is yelling about multi-parameter type class design patterns. Someone else thinks you should know Template Haskell.
There's seriously no way to prioritize studying those things. If you want to go an learn Arrows, especially if you're in a geographically isolated area like I am (hence no ability to attend meetups) and you don't already have a job providing the crucible of real work to drive learning, then you'll just flounder for weeks or months with Wikibooks entries on Arrows, etc. Then somebody stops you and says you're not good enough because you don't know multi-parameter type class patterns and so now you stop and pivot to that. Maybe whack-a-mole is a better analogy than Marco Polo.
Of course there will always be some corners of an ecosystem that are obscure. But the problem with Haskell is that it seems like everything is obscure and everything pulls you in an entirely different direction, and you don't understand how they are related until long after you've mastered them at an intermediate proficiency.
What I'd really like to see is more of a community consensus about what it means to be "beginner" or "intermediate" or "advanced".
Maybe then people who are putting up job ads for relatively junior positions or positions where they pay clearly means it's junior will at least have some community guidance for the sort of out-of-the-box recitational knowledge to expect?
They should be able to train you to do what they expect you to do.
But the reality is that people hire by bullet points and no engineer involved in the hiring process is going to miss a chance to assert superiority by asking about something obscure, or some riddle, or some on-the-spot whiteboard hazing.
In well-known languages, you can at least study what the hazing will consist of and memorize parts of it. But with an obscure language like Haskell, you're at the complete mercy of your interviewer. They largely can pick their own idea of "beginner" and hold you to it. I feel like it's much harder to do that for Python, Java, C++, etc.
[0] http://suitdummy.blogspot.com/2015/07/the-unicorn-inequality...