PragmaticBookshelf

PragmaticBookshelf

Forum Sponsor

Advanced Functional Programming with Elixir (PragProg)

Joseph Koski

Series editor: Sophie DeBenedetto @SophieDeBenedetto
Developmental editor Adaobi Obi Tulton @aotulton

Combine advanced functional programming concepts with production-ready Elixir and proven domain-driven design techniques to write cleaner, more thoughtful software. You’ll explore foundational ideas like equality, ordering, predicates, monoids, and monads—then go beyond syntax as you develop intuition for composing logic, modeling behavior, and growing systems. With a focus on maintainable, declarative code over theory, you’ll gain practical, composable patterns you can apply right away.

Get ready to manage crowds, adjust priorities, and keep everyone safe in FunPark, a place that never sits still. Your job is to model that complexity and build the systems that keep everything running smoothly, even as the business team is still figuring out what they want and the experts keep rewriting the rules.

Using core abstractions—equality, ordering, predicates, monoids, and monads—you’ll break problems into small, composable pieces that are both well-behaved and easy to combine. Rather than getting bogged down in theory or formal proofs, you’ll dive into real-world Elixir—using protocols, structs, and pattern matching to express shared behavior across your domain. Along the way, you’ll build the vocabulary and mental models you need to organize complex logic, supported by a production-ready open-source library you can use, extend, and explore in your own projects.

Whether you’re an Elixir developer mastering functional programming or a functional programmer exploring Elixir, you’ll discover how to write code that’s easier to reason about—and create systems that stay understandable, even as they grow.


Joseph Koski is a software engineer with expertise in functional programming, domain-driven design, and safety-critical systems. He created the Funx library, bringing tools like monads to Elixir. He writes at www.joekoski.com, sharing insights on functional programming, real-time systems, and using Elixir to solve complex, reliability-focused problems.


Don’t forget you can get 35% off with your Devtalk discount! Just use the coupon code “devtalk.com" at checkout :+1:

Most Liked

slouchpie

slouchpie

I just bought the book. I will start reading it over the weekend.

arcanemachine

arcanemachine

Alright, another one to add to the library!

P.S. Need to add “www” in the link to the author’s personal site.

MikeRocke

MikeRocke

Amazing! Thank you so much! Looking forward to this!

roriholm

roriholm

Looks like a great entry to the PP Elixir lineup. I look forward to lighting up a pipe or cigar and taking it in.

arcanemachine

arcanemachine

On a scale of 1-10 , would you recommend this book for someone who considers themself a “working man programmer” and not really reading for the theory or intellectual stimulation.

To answer your question directly, I would personally say “no”, but I still think the book is worth a read. (If you have to manage applications with a lot of complicated rules and are looking for a way to wrangle the complexity, I would probably say “yes”, the book may be directly useful to you.)

For me, this book was definitely very intellectually stimulating, and I feel like the techniques involved would be very useful in managing the organization of ever-increasing complexity. For example the book uses amusement park ride management as an example, but the same situation can happen with many legacy applications as the rules (and exceptions to those rules) grow like a cancerous tumor.

If the concepts in the book are applied properly, I do believe that they could be used to compose the logic required to manage some pretty complicated scenarios. Of course, I haven’t yet had the opportunity to do this, but I look forward to using this tool if I find a need for it in the future.

This book is pretty much a guided tour of the Funx library. It gives you the logical bits and pieces from that library, and shows how the different parts come together from the ground up, and how they work with each other.

I don’t know if it is essential to read the book before using the library, but I will say this: Before I read the book, I had no idea what any of the stuff in the Table of Contents meant, but after I read the book, it made perfect sense. I think that it would be a big undertaking to understand what’s happening in Funx without reading the book beforehand, unless you’re familiar with Haskell. (I believe that Haskell is the source of a lot of the concepts used in the book.)

Where Next?

Popular in Books Top

codestirring
Hey Elixir Forum, I’ve written a ebook called the Phoenix LiveView Cookbook which I’ve written in the hopes of distilling the knowledge ...
New
New
PragmaticBookshelf
Bruce Tate @redrapids edited by Jacquelyn Carter @jkcarter Elixir is a functional language that crosses many boundaries. With a syntax b...
New
PragmaticBookshelf
Rebecca Le and Zach Daniel @zachdaniel _edited by Kelly Lee @k.lee _ Ash Framework is the game-changing toolkit for Elixir developers. W...
New
AstonJ
By Simon St. Laurent If you’re new to Erlang, its functional style can seem difficult, but with help from this hands-on introduction, y...
New
peerreynders
Don’t forget you can get 35% off the ebook with your forum discount, use code ‘devtalk.com’ :023: Available in beta now
New
AstonJ
by Benjamin Tan Wei Hao The Little Elixir & OTP Guidebook gets you started programming applications with Elixir and OTP. You begin w...
New
PragmaticBookshelf
Isaak Tsalicoglou Built for the curious, this isn’t your average programming book—it’s nearly 500 pages of hands-on mentorship beyond cod...
New
AstonJ
by by Fred Hebert Erlang is the language of choice for programmers who want to write robust, concurrent applications, but its strange ...
New
New

Other popular topics Top

9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod -- where is this set? Thanks.
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
polypush135
As many of you may have realized by now (sorry for all the posts here) I’ve been working on a db problem where I’m trying to aggregate a ...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New

We're in Beta

About us Mission Statement