Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Learning functional programming

I am mostly a Java developer, this is where I've had the most experience. I want to improve my coding skills so I am looking at learning a functional language.

I don't want it to be too big a leap for me, I don't want to get bogged down in too many unfamiliar things, I'd like to get up to speed as soon as possible.

Can you recommed a language/platform for my first serious look at functional programming?

like image 676
JMM Avatar asked Mar 23 '11 07:03

JMM


2 Answers

To be honest, it's the big leap in perspective that makes learning a functional language such a benefit. I'd say dive in the deep end with the "purest" functional language Haskell.

The books Real World Haskell and The Haskell School of Expression are great introductions.

like image 109
Rob Agar Avatar answered Sep 23 '22 02:09

Rob Agar


Try Scala. It's not purely a functional programming language, but it fits right into your toolbox. See Learning Scala.

Another option may be Clojure. That, too, isn't pure FP, but as a Lisp dialect it offers many of the relevant features.

like image 44
Fred Foo Avatar answered Sep 22 '22 02:09

Fred Foo