[PDF/ePUB] Functional Programming, Simplified

Functional Programming, Simplified: (Scala Edition) image

DOWNLOAD PDF

If you’ve had trouble trying to learn Functional Programming (FP), you’re not alone. In this book, Alvin Alexander — author of the Scala Cookbook for O’Reilly, the Scala Book for the official Scala website, and former teacher of Java and Object-Oriented Programming (OOP) classes — writes about his own problems in trying to understand FP, and how he finally conquered it (and you can too!).The first thing he learned is that experienced FP developers are driven by two goals: to use only immutable values, and write only pure functions. What he later learned is that they have these goals as the result of another larger goal (or mental model): they want all of their code to look and work just like algebra.While that sounds simple, it turns out that these goals require them to use many advanced Scala features — which they often use all at the same time. As a result, their code can look completely foreign to novice FP developers. As Mr. Alexander writes, “When you first see their code it’s easy to ask, ‘Why would anyone write code like this?’”Mr. Alexander answers that “Why?” question by explaining the benefits of writing pure functional code. Once you understand those benefits — your motivation for learning FP — he shares five rules for programming in the book:All fields must be immutable (‘val’ fields).All functions must be pure functions.Null values are not allowed.Whenever you use an ‘if’ you must also use an ‘else’.You won’t create OOP classes that encapsulate data and behavior; instead you’ll design data structures using Scala ‘case’ classes, and write pure functions that operate on those data structures.In the book you’ll see how those five, simple rules naturally lead you to write pure, functional code that reads like algebra. He also shares one more Golden Rule for learning:Always ask “Why”?Lessons in the book include:How and why to write only pure functionsWhy pure function signatures are much more important than OOP method signaturesWhy recursion is a natural tool for functional programming, and how to write recursive algorithmsBecause the Scala ‘for’ expression is so important to FP, dozens of pages explain the details of how it worksIn the end you’ll see that monads aren’t that difficult because they’re a natural extension of the Five RulesThe book finishes with lessons on FP data modeling, and two main approaches for organizing your pure functionsAs Mr. Alexander writes, “In this book I take the time to explain all of the concepts that are used to write FP code in Scala. As I learned from my own experience, once you understand the Five Rules and the small concepts, you can understand Scala/FP.”Please note that because of the limits on how large a printed book can be, the paperback version does not include all of the chapters that are in the Kindle eBook. The following lessons are not in the paperback version:Grandma’s Cookies (a story about pure functions)The ScalaCheck lessonsThe Type Classes lessonsThe appendicesBecause those lessons didn’ fit in the print version, they have been made freely available online.(Alvin Alexander (alvinalexander.com) wrote the popular Scala Cookbook for O’Reilly, and also self-published two other books, How I Sold My Business: A Personal Diary, and A Survival Guide for New Consultants.)

✔ Author(s):
✔ Title: Functional Programming, Simplified: (Scala Edition)
✔ Rating : 4.6 out of 5 base on (198 reviews)
✔ ISBN-10: 1979788782
✔ ISBN-13: 9781979788786
✔ Language: English
✔ Format ebook: PDF, EPUB, Kindle, Audio, HTML and MOBI
✔ Device compatibles: Android, iOS, PC and Amazon Kindle

Readers' opinions about Functional Programming, Simplified by Alvin Alexander

/
Melody Blake
This book has reignited my passion for reading. It reminded me of the sheer joy that can be found in losing oneself in the pages of a good story. I can't wait to explore more books now.
/
Aileen Menzie
The way this book explored the complexities of human nature and relationships was both profound and relatable. It touched my heart in ways I didn't expect.
/
Rosa Bax
The author's ability to evoke a wide range of emotions through their words is truly remarkable. I felt like I was on an emotional rollercoaster throughout the entire book.


Wisdom For Your Marriage: A 31-Day Couples Devotional Guide Through the Book of Proverbs, How’s Your Soul?: Why Everything that Matters Starts with the Inside You, Dragonmark: A Dark-Hunter Novel (Dark-Hunter Novels, 20), 50+ Greatest Intermediate Classics for Flute: instantly recognisable tunes by the world’s greatest composers arranged for the intermediate flute player, 100 Classic Jazz Licks for Guitar: Learn 100 Jazz Guitar Licks In The Style Of 20 Of The World’s Greatest Players (Learn How to Play Jazz Guitar), Simple Truths: A Journaling Devotional for Teen Girls, The Simpsons Fun Facts: A Collection Of Interesting Facts To Unwind And Relieve Stress In Your Free Time., Cosmo Faces the Forest of Fear (Diamond in the Ruff), Easy Origami – John Montroll, Signing With Khy, Functional Programming, Simplified: (Scala Edition) pdf ebook epub free download ... Download Functional Programming, Simplified: (Scala Edition) Alvin Alexander or read online here in PDF or EPUB ... Functional Programming, Simplified: (Scala Edition) Alvin Alexander online ... Click to read / download Functional Programming, Simplified: (Scala Edition) Alvin Alexander PDF ... Functional Programming, Simplified: (Scala Edition) Alvin Alexander read ebooks ... Complete PDF Ebook with essay, research pape Functional Programming, Simplified: (Scala Edition) read free ... Functional Programming, Simplified: (Scala Edition) Alvin Alexander read downloads ... Functional Programming, Simplified: (Scala Edition) full download ... Functional Programming, Simplified: (Scala Edition) pdf e-book Alvin Alexander ... Functional Programming, Simplified: (Scala Edition) free download ...