Re:Haskell for Beginners
by galfarragem on Monday July 12, 2021 @06:17AM
(#27808823)
Noob question: does it worth, for a beginner, to start with Haskell instead of Elm or Purescript?
[ Parent
| on HN ]
Re:Haskell for Beginners
by yakshaving_jgt on Monday July 12, 2021 @06:52AM
(#27809002)
I would recommend starting with Elm. The language is much smaller, and the error messages are best in class. The error messages from the Glasgow Haskell Compiler (GHC) are often intimidating and it takes time to get used to them. Whatever you learn in Elm will translate more or less directly to Haskell.
Yes, because of the more mature literature and ecosystem. There is a reason quickcheck didn't come out of purescript.
Re:Haskell for Beginners
by yakshaving_jgt on Monday July 12, 2021 @06:57AM
(#27809029)
> There is a reason quickcheck didn't come out of purescript.
One of those reasons is going to be that QuickCheck predates PureScript by 14 years.
Re:Haskell for Beginners
by rishav_sharan on Monday July 12, 2021 @10:53AM
(#27810874)
They have vastly different use cases. Elm is a frontend language while haskell is a backend one.
You may want to learn both for making a full stack app. Or just learn Haskell and use its wasm compiler.
Re:Haskell for Beginners
by BoiledCabbage on Monday July 12, 2021 @03:58PM
(#27814359)
Even if you want to learn Haskell, learn Elm first. Two weekend of Elm will do more to explain Haskell do you than just about anything else.
Elm is beautifully simple. And it gives you such a solid foundation to learn Haskell and how to think in Haskell. Even if it's not Haskell and is a much smaller language.
4 out of 5 people will learn Haskell faster by learning Elm first, than by just focusing on Haskell. And I mean even accounting for the time learning Elm it still will be faster to learn Haskell.
Re:Haskell for Beginners
by jim-jim-jim on Monday July 12, 2021 @07:24AM
(#27809174)
Purescript is almost Haskell anyway. I love writing it, but it probably makes more sense to just learn the mother language first, since so many more educational resources are available.
Re:Haskell for Beginners
by blacktriangle on Monday July 12, 2021 @08:56AM
(#27809749)
Yes, Elm ignores many of the more interesting and important aspects of Haskell for the sake of appealing to JS devs. Go Elm if you want a ML based framework for web clients, but for actual language study, go Haskell.
EDIT: Seriously downvotes for that? Go watch some of Evan's talks on Elm, when pressed for why he doesn't implement some of Haskell's more out-there features, he states that his goal is not to appeal to Haskell devs, but to JS devs, and that he wants to keep the language palatable to them.