Fl4m3Ph03n1x

Fl4m3Ph03n1x

Which book to read?

Background

Hello all! So after my controversial introduction with Learning Elixir, frst impressions ( plz don't kill me ! ) - I saw a ton of recommendations for learning Elixir. The challenge however is that I don’t have time to read them all - that would take me several months or even years.

So I need to start somewhere. After checking the official page:

I concluded I am interested in Videos / Books.

What book should I get?

So, I am not completely new to FP. I know what lambdas and recursion are and I am quite familiar with the basic concepts of FP.

What I don’t know however, is how to do FP Elixir style. I am looking for a book or video that:

  • Teaches me the basics of Elixir and how to think in Elixir
  • Preferably has no association with frameworks ( yet, I will invest into Phoenix and OTP later as I rather have the basics of the Elixir mindset well cemented for now )
  • Has exercises ( I am using Exercism.io but I could use something with more guidance )
  • Preferably cheap ( I have seen some books recommended by the Erlang community with a woping 120€ price. I can’t afford anything near that. )
  • Preferable with immediate availability. I am a sucker for physical copies but right now I can’t wait a week for a book to get to me. A PDF file would be just fine.

I have checked online courses in Udemy and Pluralsight, but I am reluctant into buying them because I am not really sure if they are worth it.

Summarize

So, given my background, what I am looking for and the resources the community knows, which ones would you recommend ?

I tried to check this one out:

https://pragprog.com/book/cdc-elixir/learn-functional-programming-with-elixir

But I am not really new to FP so I am not sure if this is a good purchase for me.

Most Liked

kokolegorille

kokolegorille

I share opinion for books with other posters… but for me, one turning point was

https://www.cs.kent.ac.uk/ErlangMasterClasses/

After that, I went from why? to of course, it makes sense.

And it’s free.

datadrover

datadrover

Based on this and your previous post, I would recommend Elixir in Action. There is a forum discount code. From where you are starting, this book provides an excellent exposition of Elixir and how the language fits into the Erlang ecosystem.

peerreynders

peerreynders

Given all the parameters I firmly point you in the direction of Elixir in Action 2e. It moves at a brisk pace while treating it as a BEAM language (rather than as a FP Ruby knockoff), gets into process thinking while sprinkling in a little bit of OTP.

Here are the details with regards to the forum discount.

But I am not really new to FP so I am not sure if this is a good purchase for me.

Get through EiA2e first and continue with exercism. If after finishing the book and watching the Erlang master classes exercism still gives you trouble then it is likely a good purchase.

If you need a quick Erlang primer check out chapter 2 of Designing for Scalability with Erlang/OTP in the free sample on play.google.com - if there are any other gaps fill them in with the appropriate sections of Learn You Some Erlang.

  • Simon Thompson is one of the key people (pulling in people like Francesco Cesarini, Joe Armstrong, etc.) behind the University of Kent content - he teaches Haskell and Erlang and is the Author of Haskell: the Craft of Functional Programming and coauthor of Erlang Programming. For my overview of the Universty of Kent MOOCs see (Part 1) and (Part 2).

For some other meandering thoughts on reading order see: When learning, what order of books did you start with?

david_ex

david_ex

For learning “just” Elixir, I would recommend the following books:

The prag prog book is more of a “step by step” book. Elixir in action progresses faster (doesn’t spend as much time exploring more basic aspects). Both are good and having both won’t necessarily lead to a lot of duplication. Note I have only read the 1st version of Elixir in action: I learned a lot, but at this stage it’s getting quite dated (i.e. buy the 2nd edition, not the 1st).

Another excellent (free!) resource is learnyousomeerlang.com. Although it’s about Erlang, it spends a lot of time covering “thinking in OTP” etc. which transfers nearly directly into Elixir.

For video-based learning, there’s

Based on your experience and requests, I would recommend the first one as its style is closer to what you’re looking for.

Being new to Elixir myself, I’ve spent some time to write a series on creating a process pool manager in Elixir (as well as some small coding patterns in Elixir). You might find them helpful: http://davidsulc.com/blog/category/elixir/

peerreynders

peerreynders

Right now at www.springer.com use code SCW18E ​​​​​​​or CYBERWEEK18

Where Next?

Popular in Chat/Questions Top

KSingh1980
How to run the random query and get the result in JSON format and send it as a response. The query will be in the following form DB Name...
New
jace
I wanted to write a library for interacting with a Web API as a practical way of learning Elixir. However, there seem to be a lot of diff...
New
New
New
RKC07
I’m new to elixir. I did some coding in python and C. I want to learn elixir for starting my career in web development. I need suggestion...
New
TwistingTwists
I want to learn DSL. Don’t know how to write one. What;s the best introductory resource? I see some macro being used here. Is DSL only ...
New
boddhisattva
Greetings everyone, At my current workplace we're evaluating different ways of building a microservices architecture for some parts rel...
New
Fl4m3Ph03n1x
GenStage and Flow resources? I have been hearing about GenStage and Flow, a tool built upon it, for quite some time. I understand it allo...
New
AstonJ
It’s been a while since we asked this - I’m sure others (especially newcomers to the language) will be interested to hear how you’ve all ...
New
younes-alouani
I'm studying Phoenix Framework but I want to understand basics first. Which book/mooc explains better the Design of Network-based Softwar...
New

Other popular topics Top

sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
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
sergio
I couldn’t find any guides that worked well with Phoenix 1.6.0 and esbuild. I hope this helps people test the waters and eases you into t...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 49522 488
New
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 42633 214
New

We're in Beta

About us Mission Statement