Kick off your book project in 3 hours! Live workshop on Zoom. You’ll leave with a real book project, progress on your first chapter, and a clear plan to keep going. Saturday, May 16, 2026. Learn more…

Leanpub Header

Skip to main content

Filters

Category: "Functional Programming"

Books

  1. Effect Oriented Programming
    A Paradigm for Creating Reliable, Adaptable, Testable Systems - Using Scala and ZIO
    Bruce Eckel, Bill Frasure, and James Ward

    Have you wondered what makes functional programming such a big deal, but haven't been able to get through any of the explanations? We wrote this book for you. Four years in the making! Phone-friendly: the code listings are easily readable without phone gymnastics. This is a small book—it took an enormous amount of effort to make it so! Also available as a Print Book.

  2. NixOS in Production
    The NixOS handbook for professional use ONLY
    Gabriella Gonzalez

    Want to use NixOS "for real" at work? Interested in learning one of the hottest emerging DevOps technologies? Jumpstart your professional career by reading this book authored by a professional user of NixOS.

  3. Essential F#
    Ian Russell

    Everywhere you look, programming languages are gaining functional features. The problem is that it's not the individual features that make functional programmers happy, it's the way that your approach to writing software and the features work together to help you write simple code to solve interesting problems. This concise, practical ebook will help you discover why F# is such a popular language with those who have spent time learning its secrets. 

  4. Build It with Nitrogen: the Fast Off the Block Erlang Web Framework, guides web developers step-by-step through construction of highly reliable web applications. Nitrogen is designed for no-fuss development. It abstracts HTML and JavaScript into syntactically consistent elements and actions; preserves the scalability benefits of Erlang.

  5. Event Sourcing in Scala
    Scala 3, ZIO, PostgreSQL and the log beyond the database
    Piotr Pruchniewicz

    CRUD erases the story your system lived through; event sourcing keeps it. Build an account aggregate in Scala 3 and ZIO: past-tense events, a pure applyEvent fold, decide for invariants and idempotency, then wire an append-only PostgreSQL journal, transactions, and a balance projection—and trace one account from HTTP command to read model. When the log must leave the database, follow the same events through transactional outbox, Kafka, and at-least-once consumers without pretending you have magic consistency. For architects and implementers who want decision-grade ES + CQRS, not a toy demo.

  6. Practical FP in Scala
    A hands-on approach
    Gabriel Volpe

    A practical book aimed for those familiar with functional programming in Scala who are yet not confident about architecting an application from scratch. Together, we will develop a purely functional application using the best libraries in the Cats ecosystem, while learning about design patterns and best practices.

  7. Want to learn the basic concepts of functional programming on simple and straightforward examples? This book is your trusted guide through all the new ideas you need to grasp as a beginner in the world of pure functions, closures, immutability, idempotence and other more or less obscure topics.

  8. Why is Dhall is the most powerful and safe language for templated configuration files? Because Dhall implements System Fω, the type system at the core of Haskell - the most powerful type system short of adopting full dependent types. I found Dhall to be a delightfully lucid vehicle for learning the core patterns of functional programming. Non-Turing-completeness for the win!

  9. Rust Blockchain: A Full-Stack Implementation Guide
    From whitepaper to running blockchain
    Bill Kunyiha

    Most blockchain books teach the theory. This one walks you through building a complete Bitcoin-style blockchain in Rust, end to end — cryptography, consensus, networking, persistence, REST API, desktop wallets, and Kubernetes deployment.

  10. Layerd FP in Scala
    Clean Architecture, Hexagonal and Onion with Scala 3 and ZIO
    Piotr Pruchniewicz

    Clean, Hexagonal, Onion—one dependency rule, three names. Walk a runnable multi-module SaaS billing service in Scala 3 and ZIO: a pure domain ring, ports and use cases in the middle, PostgreSQL + Flyway + JDBC and a thin HTTP shell on the outside—with full source in the PDF, not truncated snippets. See how ZLayer at the composition root keeps one repository for the whole graph, how webhook idempotency stays on the right side of the boundary, and how munit and zio-test (plus optional Docker) prove the architecture you intend to defend in code review.

  11. Saga Architecture in Scala
    Functional Saga Architecture in Scala 3 and ZIO
    Piotr Pruchniewicz

    No distributed transaction spans your whole business process—so you design steps and compensations instead. In Scala 3 and ZIO, build a full order-placement saga from domain types and service algebras to orchestration and event-driven choreography, with tests that prove compensations fire when things break. Then see what it takes to move the same design toward production: outbox, idempotency, persistence, and how to choose between central coordination and decentralized reactions.

  12. Building Memory Matching Browser Games
    MahJong, Hidden Pairs, and "In Sequence" Memory Matching Game Mechanics.
    Stephen Gose

    This chapter is part of the "Construct Gamer Starter Kit" collection and provides a guide to developing Memory Matching games, including MahJong, Hidden Pairs, and "Sequence 3+." The tutorial includes coding for both Construct v2 and v3, making it suitable for beginners and experienced web developers alike. It's perfect for anyone looking to create their own customized Memory Matching games with unique artwork and features.

  13. Scalapedia
    Encyclopedia of the Scala programming language
    Piotr Pruchniewicz

    Discover the complete world of Scala programming in one comprehensive encyclopedia. SCALAPEDIA takes you from language fundamentals to advanced functional programming, covering Cats, Cats Effect, ZIO, design patterns, architectural patterns, and performance optimization. With over 85 chapters spanning 10 major parts, this is the definitive guide for mastering Scala and building enterprise-grade applications. Whether you're starting your Scala journey or looking to deepen your expertise, SCALAPEDIA is your complete reference for modern functional programming in Scala.

  14. Write code that you can understand without holding the entire system in your head. This book shows you how Java's modern functional features—records, sealed types, lambdas, streams—combine into a powerful approach to design. You'll learn: • How to eliminate race conditions without synchronized blocks • How to write tests that test business logic, not mock frameworks • How to compose complex behaviors from simple, reusable functions • How to manage deeply nested immutable data without boilerplate • How to adopt functional patterns incrementally in existing codebases Written for working developers. Filled with production-ready code examples.

  15. Java Backend Coding Technology
    Less art, more engineering
    Sergiy Yevtushenko

    Stop debating code style. Start engineering code. Every developer brings personal preferences. Every AI tool channels different training examples. The result? Inconsistent codebases, endless code reviews, and technical debt that compounds silently. Java Backend Coding Technology introduces a radical idea: reduce the space of valid choices until there's essentially one good way to do most things. Not through rigid frameworks, but through a small set of patterns that make structure predictable, refactoring mechanical, and business logic visible. The code you write, your teammate writes, and your AI assistant generates will look the same -- because the patterns leave no room for subjective variation.