This section contains introductory lessons on Scala-specific functional programming features. The lessons in this section are listed below.
This section contains chapters that discuss the background of functional programming. The chapters in this section are listed below.
This section contains “Introductory chapters” for the book. The chapters in this section are listed below.
(The content management system that powers this website limits the number of chapters that can be in a section in a book. Because this book contains over 100 chapters, I have to break them up with a page like this from time to time. The PDF version of the book doesn’t have artificial section breaks like this.)
Update 1: The next version of my book on Scala and functional programming will be released later this week.
Update 2: The price of the book will be increased to $25 on July 1, 2017.
Scala is a great language in many ways. One great feature is that you can use it as a “Better Java” (i.e., as an OOP language), and you can also use it as a pure FP language. While some people prefer one extreme or the other (not unlike extremist Republicans and Democrats in the U.S.), I appreciate that this lets you find a “Middle Way” of using the best features of both approaches.
The people at underscore.io have made their books on Scala and functional programming free (or “donationware,” if you prefer). I’ve found the Advanced Scala with Cats book to be particularly good, and well worth a donation.
(Full disclosure: I didn’t pay for the Advanced Scala book when I first downloaded it, then went back and tried to pay for it, but the Gumroad website wouldn’t let me do that.)
After the 0.1.2 release of Learning Functional Programming in Scala, it occurs to me that I need to be more explicit about my goals for the book. Some people seem to think that I’m trying to “sell” functional programming. That’s not the case at all. I’m just trying to be a reporter and explain what I’ve learned about FP after reading dozens (hundreds?!) of articles and many books on FP, learning Haskell, trying to apply these techniques to my own code, etc. I’ll explain this further in the next release of the book.
My new book, Learning Functional Programming in Scala, is now available as a PDF you can purchase for just $10 US. Details are listed below.Back to top
If you’ve been following along with me recently, the latest changes are:
If you happen to be looking for the free, HTML version of my book on Scala and functional programming, I’m currently in the process of moving it to this website. That way you (and I) can search it more easily, along with several hundred other pages I’ve written about programming in Scala. The first page of the content is available here: Learning Functional Programming in Scala.
One cool thing about
for expressions is that you can use multiple generators inside of them. This lets you do some nice analytics when you have some interesting data relationships.
For instance, suppose you have some data like this: