
Programming Elixir
by Dave Thomas · first published 2014
80mentions
40recommended by
66HN commenters
2013–2023first – last mentioned
61% recommend36% neutral3% critical
Why HN recommends it
Digestible, steadily paced introduction to Elixir that doubles as a first look at functional programming; suits newcomers, including Rubyists. The author keeps updating it for new Elixir versions, free to owners.
Summarised by Claude from recommending comments
Affiliate links. As an Amazon Associate I earn from qualifying purchases.








…self-evident, and feel much easier to read. * The Pipe Operator( |> ). This effectively lets you simplify code by just passing results from one thing to the next. For example(taken from the excellent "Programming Elixir" by Dave Thomas): $ (1..10) |> Enum.map(&(&1*&1)) |> Enum.filter(&(&1 < 40)) => [1, 4, 9, 16, 25, 36] So there, it takes the 1..10 range, maps the squares of each element to an array, then filters…
on “Elixir 1.2.0 Released” ↗…worth the money, but it didn't feel like it went into nearly the depth and breadth that LearnElixir.tv did. I also recommend the books "The Little Elixir & OTP Guidebook," by Benjamin Tan Wei Han, and "Programming Elixir," by Dave Thomas. Elixir School (http://elixirschool.com) is great online resource, and the Hex docs (https://hexdocs.pm) are clear and well organized. Finally, "Take Off with Elixir" (https://bigmachine.io/products/take-off-with-elixir/)…
on “Why the Elixir language has great potential” ↗If you're new to Elixir, I highly recommend Dave Thomas' book "Programming Elixir" https://pragprog.com/book/elixir/programming-elixir From the website: "You want to explore functional programming, but are put off by the academic feel (tell me about monads just one more time). You…
on “Phoenix 1.0” ↗I love it! Dave Thomas' Programming Elixir 1.3 is the book to get if you're just starting out.
on “Show HN: A Travis CI Elixir client” ↗Try Elixir, it runs on the ErlangVM and has a much nicer syntax, plus metaprogramming through Lisp-style macros, while preserving every feature that makes erlang great. https://pragprog.com/book/elixir/programming-elixir <-- dave thomas has a great writing style.
on “Why WhatsApp Only Needs 50 Engineers for Its 900M Users” ↗I can highly recommend David Thomas' book Programming Elixir, I found it complete to get a good grip and also a great introduction into functional programming overall https://pragprog.com/book/elixir/programming-elixir
on “Flirting with Elixir” ↗This is a good 'start' to an elixir list, but i'm surprised it's missing 'Programming Elixir' by Dave Thomas, which is probably the de-facto pick-axe/K&R/whatever of elixir. The title is a little misleading as it contains other resources than just books (unfortunately missing http://www.redfour.io/…
on “List of Elixir books” ↗…(something I've also been known to do, because I enjoy mentoring yet sort of abhor the spotlight) 4) book authors... has Dave Thomas been a big committer of elixir code? I don't think so, and yet his Programming Elixir book is considered one of the best 5) a lot of other stuff that is simply not very visible, such as Jose trying to make the community more inclusive
Dave Thomas' Programming Elixir should be the first :)
on “Metaprogramming Elixir” ↗…phase. Once it clicks, it will change the way you think about programming. I'd say pick up the defacto book in one of the langs you listed and get started! I went with Elixir, and I'm hooked. Dave Thomas' Programming Elixir is an excellent place to begin.
on “Ask HN: Best way to start with functional programming?” ↗I have JUST finished Dave Thomas' excellent (beta) book, "Programming Elixir," and honestly I can't wait to start building great concurrent, network-aware processes with it!
on “Elixir v1.0.0 released” ↗Dave Thomas' book is an easy read: https://pragprog.com/book/elixir/programming-elixir
on “Parallel Map in Elixir” ↗…features as far as languages go, I believe... such as full-fledged macros in a non-homoiconic language. If you want to dabble in it, Dave Thomas' book on it is awesome: https://pragprog.com/book/elixir/programming-elixir
on “I would have hired Doug, but...” ↗…my favorite books, too. That book really motivated me to learn how programming languages work. Here are a few other books I found to be enjoyable and well-written: Programming Erlang by Joe Armstrong Programming Elixir by Dave Thomas Seven (more) Languages In Seven Weeks by Bruce Tate Think Bayes, Think OS, How To Think Like A Functional Programmer (Think OCaml) and The Little Book of Semaphores by Allen B. Downey
on “Ask HN: What are some of the best written programming books?” ↗> getting started guides are excellent This is very true. I had just started playing with Elixir and had pre-ordered Dave Thomas' Programming Elixir and was going through the draft ebook, and I actually set that aside and worked through the Getting Started. It's normal the see such guides, but the material there is really, really good.
on “Elixir v1.1.0 Released” ↗