Learn Functional Programming the Fast Way! A Former Java/OOP Instructor Teaches FP in the Fastest Way He Knows |
|
Author:
| Alexander, Alvin |
ISBN: | 979-8-3876-7720-5 |
Publication Date: | Mar 2023 |
Publisher: | Independently Published
|
Book Format: | Paperback |
List Price: | USD $14.99 |
Book Description:
|
(Note: This book was previously named
Learn Functional Programming Without Fear.) Half-price introductory sale! The regular price for this book is $29.99 (USD), and it''s currently just $14.99! Learn functional programming (FP) the fast way in this small, easy-to-read book by Alvin Alexander. Don''t let this book''s low price fool you, because Alvin is the author of:
- The best-selling, highly-rated Functional Programming, Simplified (a...
More Description
(Note: This book was previously named
Learn Functional Programming Without Fear.)
Half-price introductory sale! The regular price for this book is $29.99 (USD), and it''s currently just $14.99!
Learn functional programming (FP) the fast way in this small, easy-to-read book by Alvin Alexander. Don''t let this book''s low price fool you, because Alvin is the author of:
- The best-selling, highly-rated Functional Programming, Simplified (a much larger book)
- Two editions of the Scala Cookbook
- Learn Scala 3 The Fast Way!
- A primary author of the Scala 3 Book on the official Scala website
The book''s price is only low because it''s Alvin''s desire to make FP accessible to anyone who wants to learn about it.
Written for OOP Developers While Alvin has written over 1,000 pages about FP, he recently discovered this new, simpler technique to help OOP developers learn FP
fast -- in less than 250 pages!
If you''re an OOP developer who uses programming languages like Java or Kotlin, Alvin understands your background. He''s a former Java/OOP instructor and mentor, and uses Kotlin for Android apps, and started creating the Kotlin Quick Reference booklet.
Emphasis on Simple A great thing about this book is its simplicity. As "Uncle" Bob Martin tweeted about a book he wants to write, that means:
- No functors
- No monoids
- No monads (okay, 1)
- No category theory
What you''ll find in this book are just code examples that build up step-by-step, until you''re writing FP code.
A Little Book, A Huge Goal This simple little book has an audacious goal: To help OOP developers who use languages like Java, Kotlin, Python, Swift, and C++ learn the concepts that take you to the cusp of using Scala''s two main FP libraries:
Cats Effect and
ZIO.
To be clear, when we say "the cusp" of using those FP libraries, when you finish the book, you should be able to look at the initial examples in the ZIO and Cats Effect documentation and think, "I know what they''re doing, and I know why they''re doing it."
This little book is 250 pages in length, and is written in a simple, conversational style, as though Alvin is sitting next to you in a pair programming session, or mentoring you in a small classroom. If you''re an experienced OOP developer, you may be able to read it over a weekend, a few nights, or a week at most.
The Book''s Journey The book starts with a discussion of the Java/OOP code Alvin wrote (and taught) for 15 years. He then shows how to solve programming problems using these techniques:
- Pure functions
- Immutable (algebraic) variables
- Immutable data structures
After comparing this code to his previous Java/OOP code, it''s off to the races as he adds in:
- Expression-oriented programming (EOP)
- Functional error handling with Option, Try, and Either
After that, he shows how these techniques naturally lead to the concepts in the ZIO and Cats Effect libraries. As Alvin writes in
Functional Programming, Simplified, if you had been interested in these techniques many years ago, you might have invented FP yourself.
Who''s Using FP? If you''re just curious about FP, it may help to know that if you have a Disney Streaming account in 2022, you''re a consumer of FP code written in Scala -- what Alvin calls "Scala/FP."
Similarly, if you have online financial accounts, read online news sites, or use a gambling site like Caesars, you''re also consuming content generated by Scala/FP code.
Because of the concepts you''ll see in this book, Scala/FP code is trusted, rock-solid, and is used in massively-parallel programming environments.