Functional Programming for Mortals with Cats
Functional Programming for Mortals with Cats
$15.00
Minimum price
$20.00
Suggested price
Functional Programming for Mortals with Cats

Last updated on 2020-04-21

About the Book

This book is for the typical Scala developer, probably with a Java background, who is both sceptical and curious about the Functional Programming (FP) paradigm. This book justifies every concept with practical examples, including writing a web application.

  • Share this book

  • Feedback

  • License

About the Author

Zara Turtle
Zara Turtle

Computer science student turned psychology graduate. I use Scala and Python to write analysis tools for the public sector in support of tertiary education administration and research.

Table of Contents

  • About This Book
  • Copyright Notice
  • Practicalities
  • 1. Introduction
    • 1.1 Abstracting over Execution
    • 1.2 Pure Functional Programming
  • 2. For Comprehensions
    • 2.1 Syntax Sugar
    • 2.2 Unhappy path
    • 2.3 Gymnastics
    • 2.4 Incomprehensible
  • 3. Application Design
    • 3.1 Specification
    • 3.2 Interfaces / Algebras
    • 3.3 Business Logic
    • 3.4 Unit Tests
    • 3.5 Parallel
    • 3.6 Summary
  • 4. Data and Functionality
    • 4.1 Data
    • 4.2 Functionality
    • 4.3 Modelling OAuth2
    • 4.4 Summary
  • 5. Cats Typeclasses
    • 5.1 Agenda
    • 5.2 Appendable Things
    • 5.3 Objecty Things
    • 5.4 Mappable Things
    • 5.5 More Functors
    • 5.6 Variance
    • 5.7 Semigroupal, Apply and FlatMap
    • 5.8 Applicative and Monad
    • 5.9 ContravariantMonoidal
    • 5.10 SemigroupK, MonoidK, Alternative
    • 5.11 Co-things
    • 5.12 Summary
  • 6. Cats Data Types
    • 6.1 Natural Transformations
    • 6.2 Containers
    • 6.3 Summary
  • 7. Cats Monads
    • 7.1 Always in motion is the Future
    • 7.2 Effects and Side Effects
    • 7.3 Stack Safety
    • 7.4 Monad Transformer Library
    • 7.5 A Free Lunch
    • 7.6 Parallel
    • 7.7 IO
    • 7.8 Summary
  • 8. Typeclass Derivation
    • 8.1 Running Examples
    • 8.2 Typeclasses of Typeclasses
    • 8.3 Magnolia
    • 8.4 Shapeless
    • 8.5 Performance
    • 8.6 Summary
  • 9. Wiring up the Application
    • 9.1 Overview
    • 9.2 Main
    • 9.3 Blaze
    • 9.4 Thank You
  • 10. Typeclass Cheatsheet
  • 11. Haskell
    • 11.1 Data
    • 11.2 Functions
    • 11.3 Typeclasses
    • 11.4 Records of Functions
    • 11.5 Modules
    • 11.6 Evaluation
    • 11.7 Next Steps
  • 12. Third Party Licenses
    • 12.1 Scala License
    • 12.2 Cats License

Authors have earned$9,108,966writing, publishing and selling on Leanpub,
earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub