Live data from Hacker News

Learn You a Haskell for Great Good

learnyouahaskell.com

1–10 of 67 posts

Re: Learn You a Haskell for Great Good

#3
This is an amazing book. I highly recommend it as the first Haskell book you read. After it, you can check out Real World Haskell.

To elaborate on why you shouldn't read (at least the online version of) Real World Haskell first: It has a lot of important topics that it covers that LYAH does not cover (like how to use cabal their package manager). But, it's not as good of a tutorial on the language and functional programming. It glosses over very complex topics, goes into a lot of depth on details that are not so important and worst of all, gives you some exercises that you aren't capable of answering yet. I tried learning Haskell three times from that book and gave up because it just killed my confidence.

Then I discovered LYAH. It explains things very simply and at a very good pace. If you want to learn Haskell and/or functional programming, I can't recommend it more. Imagine one of the Head First books without all the corny. The only thing I wish it had was exercises.

Re: Learn You a Haskell for Great Good

#5
Haskell looks very interesting but I can't help but ask 'why do I need it?'. Currently I am learning Java since I want to get a jr.developer job later on and Ruby for some scripting and personal projects(maybe even Rails later). So Java is used in industry, Ruby is used in web and metasploit/ronin (something that I like to mess with), but what about Haskell? I am genuinely curious what Haskell can offer. I always see it mentioned on Reddit but I have yet to come across any notable project written with it. Could somebody with experience give me some reasons for me to learn it?

Re: Learn You a Haskell for Great Good

#6
post #5

Haskell looks very interesting but I can't help but ask 'why do I need it?'. Currently I am learning Java since I want to get a jr.developer job later on and Ruby for some scripting and personal projects(maybe even Rails later). So Java is used in industry, Ruby is used in web and metasploit/ronin (something that I like to mess with), but what about Haskell? I am genuinely curious what Haskell can offer. I always see…

It's a tiny detail but learning some functional ways of thinking gives you great alternatives to for/foreach loops when dealing with large lists/arrays/hashtables of data, even in other languages like Ruby or Java.

Re: Learn You a Haskell for Great Good

#8
post #7

Is the name of this book some sort of inside joke or something?

I believe the title is a riff off of "Learn You Some Erlang for Great Good!" Some other books or online tutorials have taken that form of title. I don't really know why, though I suppose the silliness offsets the otherwise heavy nature of the content. (Learning Erlang is probably easier than learning Haskell for most people, but it can still be a mind stretcher if you've never done a functional language before.)

Re: Learn You a Haskell for Great Good

#9
post #5

Haskell looks very interesting but I can't help but ask 'why do I need it?'. Currently I am learning Java since I want to get a jr.developer job later on and Ruby for some scripting and personal projects(maybe even Rails later). So Java is used in industry, Ruby is used in web and metasploit/ronin (something that I like to mess with), but what about Haskell? I am genuinely curious what Haskell can offer. I always see…

You don't need it. If you are a Junior developer (or aiming at being one) Haskell is a language you most definitely don't need.

Now, once you have your feet wet, it's worth learning. Here's why:

- Pure(mostly) functional language. This is in opposition to Java & Ruby, which while having functional aspects are OO (Object Oriented). - It's okay not to know what a functional language is. It's making functions first-class citizens, such that a function becomes a value like any other. - Separates IO from computation. IO is inherently impure and unreliable, so functions are generally pure and instead wrap IO in containers. Obviously, programs would be less useful (still use in the compiler running!) without IO. - All of these concepts (and more) will change how you think about programming and make you a better programmer in all languages.

Haskell can be found in some backend stacks, the more notable examples I can think of are Mailrank (acquihired by Facebook) and Bump.

Personally, I've only done a limited number of projects with Haskell (a Postgres-backed beer API & IRC bot) but I've grown to respect it as a language and through limited exposure has made me love FP.

Re: Learn You a Haskell for Great Good

#10
post #8
post #7

Is the name of this book some sort of inside joke or something?

I believe the title is a riff off of "Learn You Some Erlang for Great Good!" Some other books or online tutorials have taken that form of title. I don't really know why, though I suppose the silliness offsets the otherwise heavy nature of the content. (Learning Erlang is probably easier than learning Haskell for most people, but it can still be a mind stretcher if you've never done a functional language before.)

It's actually the other way around. Fred Hebert, author of LYSE, named it after Miran's LYAH.
Post reply on HN