Review: Learn Functional Programming with Elixir

I have recently finished reading the book Learn Functional Programming with Elixir, from Ulisses Almeida, published by PragProg.

I was curious about this book in  particular because I wanted to know how a book that explains functional programming for people that are starting this journey would be

My path to learning functional programming was not linear and I had to go through many different resources until I finally wrapped my head around this (not so) new concept.

Ulisses’s book comes to fill in this gap and it is a wonderful resource if you want to understand what functional programming is about and where to start.

The book itself is divided into seven chapters:

  1. Thinking Functionally
  2. Working with Variables and Functions
  3. Using Pattern Matching to Control the Program Flow
  4. Diving into Recursion
  5. Using Higher-Order Functions
  6. Designing Your Elixir Applications
  7. Handling Impure Functions

It is not a heavy reading and it guides the readers from the basics of functional programming, going through concepts such as recursion and immutability, until more advanced concepts like polymorphism.

All of this with lots of examples and exercises that help the reader to comprehend what is being discussed in a very clear and concise way.

Chapter six in special caught my attention because it brings some light to the subject Protocols and Behaviours. Even though there is a lot of material about that subject, it is pretty common for people to get confused about it, and in the book, Ulisses explains it in such a simple way through lots of examples and refactorings that I am almost sure that you won’t have doubts about this topic anymore.

Target

This is a book for people that don’t have any previous knowledge of functional programming and/or Elixir. It will walk you through all the necessary subjects for you to understand these concepts in a way that it seems that Ulisses is talking to you face to face.
But it is important to make it clear that it doesn’t cover all Elixir topics. You will still need to read more books, after finishing this one, to understand topics such as processes, metaprogramming  among other things.

Conclusion

It is definitely a great book for people that need guidance in the functional programming world, the book I wish I had the chance to read when I was first starting. Such a light reading that you can do it on the way to work, without getting lost in the examples, definitely worth it.

Do you want to take a look at the first chapter?

Download it for free in here.

Comments are closed.