News for hackers. Stuff that matters.
Re:Imperative vs Functional Programming by olalonde on Tuesday May 31, 2011 @07:33AM (#2602150)
What would be a good first functional language to learn coming from an imperative/OO background?
Re:Imperative vs Functional Programming by nickik on Tuesday May 31, 2011 @07:42AM (#2602168)
Depends on you you can either "jump in the deep end" or you can gratually move more to it.

Gratually moving is good if you want to stay productive. (Scala, Common Lisp, dylan come to mind)

Jumping in the deepend will totaly go against everything you learned but you will learn very fast. (Haskell, ML, Clojure and Scheme are probebly best here)

Books: Land of Lisp/Practical Common Lisp for Commen Lisp Not sure about Scala Programming Dylan for Dylan

Learn you a Haskell for Haskell Programming Clojure/Practical Clojure for Clojure Structure and Interpretation of Computer Programmes/The little Schemer for Scheme (Don't know a good book for ML)

Re:Imperative vs Functional Programming by _delirium on Tuesday May 31, 2011 @07:50AM (#2602186)
I'd put ML closer to the gradual camp, though it depends strongly on where you learn it from, and partly on which flavor you choose. I see a whole lot of procedural-flavored Ocaml, and it's fairly easy (like Lisp) to mix procedural and functional styles.
Re:Imperative vs Functional Programming by nickik on Tuesday May 31, 2011 @01:38PM (#2603567)
Ok, I didn't know that. I have never seen a line of procedural code in ML. Thx for the info.
Re:Imperative vs Functional Programming by olalonde on Tuesday May 31, 2011 @07:53AM (#2602191)
Yes, the plan is to jump in the deep end, unwire my brain and apply the concepts I learn to my day to day Ruby/Javascript programming as much as possible. I think I'll go with Haskell.
Re:Imperative vs Functional Programming by yogsototh on Tuesday May 31, 2011 @07:59AM (#2602198)
I am currently learning Haskell. I started by not really knowing where to start. Now I follow this advice, and until now I find it very helpful:

http://stackoverflow.com/questions/1012573/how-to-learn-hask...

Re:Imperative vs Functional Programming by arethuza on Tuesday May 31, 2011 @10:32AM (#2602731)
If you are interested in the "deepend" then you could always have a look at lambda calculus and combinators:

http://en.wikipedia.org/wiki/Lambda_calculus

http://en.wikipedia.org/wiki/Combinatory_logic

Then you get to see where the term Y Combinator came from :-)

Re:Imperative vs Functional Programming by gaius on Tuesday May 31, 2011 @12:21PM (#2603185)
OCaml. You can get "real work" done by dropping back to familiar imperative constructs when necessary, yet you still have an excellent functional language at your disposal. Eventually you will go more and more FP as you become more comfortable, e.g. you can use a for loop if you want, but pretty soon you'll be more comfortable with a map and it will come naturally. Or you can use an if.. else construct until you are happy with match...with.

I personally treat OCaml as a type-safe Python or Tcl, you can work very productively with it.

Re:Imperative vs Functional Programming by anon_c on Tuesday May 31, 2011 @11:46AM (#2603027)
Standard ML. It's simple, well-designed, stable, and consistent.

http://www.itu.dk/~tofte/publ/tips.pdf

http://homepages.inf.ed.ac.uk/stg/NOTES/notes.pdf

A full book. It's good, but don't start with it: http://www.cs.cmu.edu/~rwh/smlbook/

Re:Imperative vs Functional Programming by babel17 on Tuesday May 31, 2011 @10:05AM (#2602623)
Probably my language Babel-17 (http://babel-17.com) if it just came down to the concepts.

The Babel-17 ecosystem (input, graphics) is not in place yet, though, so for now the best language would be Standard ML .