News for hackers. Stuff that matters.
Re:Railway-oriented programming by the_af on Friday June 13, 2014 @02:53PM (#7890285)
But that's precisely how the examples from Learn you a Haskell work...

First the author introduces a simple problem which you could have thought of without knowing anything about Haskell. Then he writes a naive, step-by-step solution without knowledge of Monads, Monoids or whatnot (ok, maybe later chapters assume you've read the previous ones). Then, he shows how the solution he arrived at maps to Monad/Monoid/whatever. He also shows how the solution can be made "more general" than the particular problem you started attempting to solve.

Give it a chance and you'll see what I mean. There's no black magic there.

Also, you can completely bypass do-notation and you'll see there's nothing exceptional about monads.

Re:Railway-oriented programming by vertex-four on Friday June 13, 2014 @03:23PM (#7890396)
I'm not talking about do-notation. There's plenty of black magic in Haskell. The overuse of operators and abstractions over everything makes it impossible to even figure out what a given function will be taking as parameters, never mind what a function actually does.

I want to think in terms of actual, concrete pieces of data. Types are just definitions for shapes of data. I can't think at the level of "X takes a Y", I think at the level of "the x function takes the result of the y function". Haskell is obviously not the language for me.

Re:Railway-oriented programming by innguest on Friday June 13, 2014 @04:08PM (#7890599)
I'd be very interested in trying to clarify some of the difficulties you're having with Haskell, if you'd be interested.

I'm working on a tutorial to take people from zero to functional programming thinking and understanding the intuition, and I need people that are interested in learning Haskell but are currently experiencing difficulties grasping the concepts in order to understand which things are the common obstacles.

If you're interested, please email me (my profile should have my email, if not just answer if interested and we'll figure out a way).

Thanks!