News for hackers. Stuff that matters.
Re:Haskell in Production by epsolos on Thursday October 17, 2019 @01:49PM (#21284550)
Most people that have worked as developers/programmers/etc. that don't have a lot of exposure to or training in fp find it painfully hard to learn. This could be one of those cases.
Re:Haskell in Production by brokencode on Thursday October 17, 2019 @01:57PM (#21284661)
To them, I would suggest that they remember back to when they learned their first imperative language like Java or C. For me, that was really difficult to wrap my mind around at the time, but now those languages are second nature to me. I kind of suspect that if everyone were exposed to a functional language first, there would be a lot fewer people who think they are extremely hard to learn.
Re:Haskell in Production by journalctl on Thursday October 17, 2019 @03:24PM (#21285502)
I fondly remember being confused by “return” for weeks (granted, I was 9). What are you returning? And to where? And why was it only one thing? And where did it go when it got there?

It’s easy to forget how hard something was to learn once you already know it.

Re:Haskell in Production by cuddlecake on Thursday October 17, 2019 @03:39PM (#21285631)
I remember when I started with Java at University.

Like, "hello, what is a method? What the hell is a class? Come on, stop kidding me, objects have methods???? How do I call them? Wait, how do I _write_ a method?"

Re:Haskell in Production by shantly on Thursday October 17, 2019 @03:56PM (#21285780)
What I kept bouncing off of was all the stupid as shit "sally sends a BUY message to Tommy's bagel shop" crap. I just needed about two to four pages worth of text & diagrams demonstrating how objects and structs are pretty much the same thing, and what the OO sugar inheritance and keywords and dynamic dispatch and such do under the hood, which ain't that complicated. Every single book I picked up (back in the '90s, when if you didn't know someone to personally recommend a book it was much harder to figure out which ones were decent and which sucked) wanted to use those awful, cutesy analogies to introduce OO and they just confused the hell out of me, and convinced me something dead-simple was hard.
Re:Haskell in Production by sullyj3 on Friday October 18, 2019 @01:10AM (#21288854)
There are many reasons Haskell is difficult to learn, and the functional programming aspects are only part of it. I'd venture a guess that it's vastly easier to go from say, python to clojure, than from python to haskell. Even neglecting clojure's impure escape hatches.
Re:Haskell in Production by mbrodersen on Friday October 18, 2019 @09:42AM (#21291264)
If you are learning something new and it isn't hard to learn then you are not learning anything truly new. Just variations/flavours of what you already know. If it is really hard then you are truly learning something new. No pain no gain.