Any good reference on how to do FP in Scala?

68 views
Skip to first unread message

Saxo

unread,
Nov 21, 2012, 4:23:04 AM11/21/12
to scala...@googlegroups.com
Hi,

just read the article by Martin Odersky about Scala being postfunctional (see link). What he says looks fairly reasonable to me. There is some phrase by Andrey Breslav (creator of Kotlin) I agree with: "FP makes things simpler. Sometimes at a huge price". That's why I like the moderate approach to FP in Scala. Choose OO or FP depending on the situation.

Problem is that I only had a course on Scheme when studying. I don't have any real understanding of FP. If I sit down and try to do some FP in Scala where appropriate it is only something I think it were FP. So what I'm looking for is some reference (article, book, whatever) that explains to an FP novice what would be meaningful way to do FP in Scala.

Thanks a lot for any hints.
Regards, Oliver

Damian H

unread,
Nov 21, 2012, 5:14:28 AM11/21/12
to scala...@googlegroups.com

Saxo

unread,
Nov 21, 2012, 5:42:33 AM11/21/12
to scala...@googlegroups.com
This looks very good. Thanks. Maybe I'm too much used to searching on Amazon ;-).

Stefan Hoeck

unread,
Nov 21, 2012, 7:20:51 AM11/21/12
to scala...@googlegroups.com
There's a book being written by some of the authors of scalaz. I highly recommend it, though it is by far not finished yet.

http://www.manning.com/bjarnason/

Cheers, Stefan

Daniel Sobral

unread,
Nov 21, 2012, 7:32:06 AM11/21/12
to Saxo, scala-user
Also from Manning, Scala in Action (http://www.manning.com/raychaudhuri/) covers a fair amount of FP use in Scala, though I've seen some heavy criticism to it from some of the fp crowd. Still, I can't help but like that book.

From Artima (publisher of PinS), there's Monadic Design Patterns for the Web (http://www.artima.com/shop/monadic_design_patterns). I haven't looked inside it, but I have long been waiting for it to come out.

Not that I don't think Functional Programming in Scala and the coursera course aren't exceptional recommendations -- they are.
--
Daniel C. Sobral

I travel to the future all the time.

Tim Pigden

unread,
Nov 21, 2012, 7:33:17 AM11/21/12
to Stefan Hoeck, scala-user
I would definitely start with the online course - which will be  permanently available according to what Odersky said at ScalaExchange on Monday. The examples in the course are fantastic - really good for working through step by step.
The book mentioned above is heavier going and would be much better approached after you have some fluency with the language - which the course could bring. 
Tim
--
Tim Pigden
Optrak Distribution Software Limited
+44 (0)1992 517100
http://www.linkedin.com/in/timpigden
http://optrak.com
Optrak Distribution Software Ltd is a limited company registered in England and Wales.
Company Registration No. 2327613 Registered Offices: Orland House, Mead Lane, Hertford, SG13 7AT England 
This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Optrak Distribution Software Ltd. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error.

Daniel Sobral

unread,
Nov 21, 2012, 7:34:03 AM11/21/12
to Saxo, scala-user
Oh! One more: Scala in Depth (http://www.manning.com/suereth/) also from Manning. With the great advantage of being out already, instead of early access. It's not about functional programming, but it's definitely the book to get if you want to level up your scala programming skills.
Reply all
Reply to author
Forward
0 new messages