Review on 2 well-known Haskell textbooks

Almost every Haskell beginner reads the following 2 books:

<Learn you a Haskell for great good>

<Real World Haskell>

I took some time climbing up along this steep learning curve, and finally got a bird's view on Haskell, by the above books.

"The better your C++ skill is, the harder you feel learning Haskell". True, but only before you find the correct way to learn it - Brush up your Maths thoughts and inspect Haskell using this mathematical microscope. Haskell compiler is a theorem proofer, so your haskell code is purely maths equations - only Haskell is 100% pure. 

Lazyness? You will need calculate Equation A only when you need it. Monad? operations are a group. Or, the best quote on Monad ever, from Real World Haskell: Monads are programmable semicolons. When you program Haskell, you are writing equations actually.

OK, back to the books. LYHFGG is the best book for beginners. Author is a young student and he possesses excellent capability of elaboration. All concepts are explained in verbose. It fills every gap in your mind. If you read through it carefully, you gets its ideas. Though, LYHFGG focuses on language itself heavily, but surprisingly there's no section on Monad Transform, or no real world applications. After LYHFGG, you will soon move on to RWH naturally.

Wording of RWH is not as pleasant as the former, but it contains quite a lot useful information. It has bette Monad chapters than LYHFGG. The best of it is that RWH focuses on real world application, which is demanded. You can't grasp RWH by simply reading it. You have to get back to it frequently while you code, until you don't need it anymore :)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章