Sale! The price of this best-selling, highly-rated functional programming book is normally $15, and it is temporarily reduced!
While he’s known for writing two editions of the Scala Cookbook for O’Reilly and the Scala Book for the official Scala website, this book is his most popular, helping thousands of developers to understand functional programming (FP). He does this in a simple writing style that focuses on a series of source code examples (rather than abstract programming concepts like functors, monads, and category theory). As a former teacher of Java and object-oriented programming (OOP) courses, it’s just as though he was pair-programming next to you, or mentoring you in a small classroom.
In this classic book — which is one of the highest-selling FP books of all time — Functional Programming, Simplified makes the process of learning functional programming in Scala (what he calls Scala/FP) as simple as possible by breaking down complex topics into small, bite-size chunks that are easy to understand.
Through a lot of pain and frustration, Mr. Alexander learned that if you learn Scala/FP topics in a logical sequence — the sequence he shares in this book — it’s much easier to learn FP. (Conversely, the reasons that many developers can’t understand FP is that there is some gap in their knowledge that keeps them from making the conceptual leap from one topic to another.) Therefore, the chapters in this book are small, one-topic lessons, where the piece of knowledge you’re learning in the current lesson is exactly what you need to be ready for the next lesson.
The book’s lessons simple set of rules for functional programming in ScalaHow and why to write pure functions and use immutable variablesWhy function signatures in FP are *much* more important than method signatures in OOPHow pure functions work with I/O (file, database, and network)How to read anonymous functionsLessons on recursion, with many images to help explain how it worksHow the concepts of JVM stacks and stack frames workPartially-applied functions and curryingHow using Option naturally leads to flatMap, and how flatMap naturally leads to for-comprehensionsSimple, useful definitions of FP concepts like functors and monadsHow to write your own monad!How to use other monads like State and IOHow to use monad transformers like StateTDomain modeling in functional programmingHow to use “lenses” to update immutable data modelsConcurrency lessons cover Akka actors and Scala futuresVisual lessons on collections’ methods like fold and reduceHow to use the ScalaCheck property-testing frameworkHow to write and use “type classes”Algebraic Data Types (ADTs) are explainedAll told, the book contains 120 small chapters. Source code examples from the book are available as a series of Github repositories that you can download and work with.
Achei fantástica a forma com a qual o livro é estruturada: uma infinidade de objetivos pequenos, que tem o problema muito bem definido e a solução bem elaborada. Não, não é um cookbook, os tópicos vão seguindo uma ordem crescente de aprofundamento no paradigma funcional.