Hello Haskell, Goodbye Scala
joshbassett.info
Hello Haskell, Goodbye Scala
1–10 of 118 posts
Re: Hello Haskell, Goodbye Scala
#2Re: Hello Haskell, Goodbye Scala
#3Take most Lisps (I'll assume scheme, because it's what I'm most familiar with), which give you more than enough side-effecty rope to hang yourself with should you so desire- but you won't get far unless you're coding functionally.
Re: Hello Haskell, Goodbye Scala
#4Re: Hello Haskell, Goodbye Scala
#5On one hand, it's incredibly rewarding when a completely new and strange concept finally 'clicks', then you write a few lines to test your understanding and it just works.
On the other hand, it's frustrating to realize that there are still a lot of concepts you don't fully grasp, several libs that are still out of your reach, yet another completely new way of structuring your code that you are yet to unravel. Essentially, that you are (I am) still a newbie.
All in all, I find Scala better suited to learning FP and applying your newly-acquired knowledge to develop mildly useful apps, as quick results usually lead to more motivation. Just IMHO.
(Not to mention there are many libs that aren't yet up to par with their JVM counterparts, but that's another can of worms.)
Re: Hello Haskell, Goodbye Scala
#6I enjoyed the read, but I borked at your suggestion that not being purely functional, and the language barking at you if you break that convention stops you learning functional programming. Take most Lisps (I'll assume scheme, because it's what I'm most familiar with), which give you more than enough side-effecty rope to hang yourself with should you so desire- but you won't get far unless you're coding functionally.
Re: Hello Haskell, Goodbye Scala
#7Re: Hello Haskell, Goodbye Scala
#8I find it unconvincing. That Haskell deemed is better for learning functional programming for the sake of learning functional programming does not really say much about general usefulness.
Not sure what you are unconvinced about.
Re: Hello Haskell, Goodbye Scala
#9Having learned some great functional tips, I came back to my regular C#/Ruby and applying LINQ and Ruby's blocks seemed more natural to me. However, monads, monoids, functors still don't matter when you switch over.
I've used Yesod to write a small app. A typical form in Yesod (for model binding) has this signature:
newPostForm :: Html -> MForm Blog Blog (FormResult (Text,Text,Text), Widget)
Even after learning Yesod for a while, I wasn't able to completely reason with that signature. Why bother with all the name of the application, sub site, formresult, widget when all you want is just three simple form fields? Rails gives it to you in params[:form]. It's just too easy in Rails with a lot of gems lying around for every task you decide to do. And when you're stuck, you're just a google away from getting your answer.
So my question is: after learning Haskell, do you intend to stick to it? Did I make a wise decision in ditching Haskell?
Re: Hello Haskell, Goodbye Scala
#10I find it unconvincing. That Haskell deemed is better for learning functional programming for the sake of learning functional programming does not really say much about general usefulness.
And the OP is talking only about learning FP, not about general usefulness. Not sure what you are unconvinced about.