ayarodionov
AI assistants now write a lot of our Elixir and Erlang, and they’re fluent at it. What they get wrong is quieter: code that compiles, reads well and passes the obvious test, then fails under load, on unexpected input, or in the release rather than in iex. Catching that takes knowing how the language and the runtime actually behave, which is the knowledge these two books try to teach.
Learning Erlang from Claude (GitHub - ayarodionov/Learning-Erlang-from-Claude · GitHub) covers the runtime itself: supervision trees, processes and mailboxes, binaries and memory, ETS, gen_server and gen_statem, distribution, releases, testing, observability, schedulers, and NIFs and ports. Everything in it applies to Elixir unchanged.
Learning Elixir from Claude ( GitHub - ayarodionov/Learning-Elixir-From-Claude · GitHub ) covers what Elixir adds on top: pattern matching, errors and control flow, Task and Agent, GenServer, supervision and Registry, Enum and Stream, strings and Unicode, protocols, macros, Mix and releases, ExUnit, types and telemetry.
Every chapter has the same five parts: why it exists, the building blocks, how it actually works, plausible but wrong, and a review checklist with sources. The “plausible but wrong” section is the heart of each chapter: code an assistant (or a tired human) writes readily, why it fails, and the fix.
About the books:
- Each has 15 chapters, ending with a review cheat sheet that collects every checklist, to run generated code past before accepting it.
- Both are free under the MIT license, in Markdown and as PDFs, per chapter or as one book.
- The Erlang book was checked against the OTP 29.1.1 documentation. The Elixir book was checked against the Elixir 1.20 documentation, and its examples were run on Elixir 1.14 and 1.18.
- They were written with Claude, which fits the subject, and checked against the official docs they cite. They can still contain mistakes: treat the linked docs as the authority, and please report errors as issues on GitHub.
I’d welcome corrections, and suggestions for “plausible but wrong” examples you’ve seen in real code.
Trending in Other Resources
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #code-sync
- #discussion
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #ai
- #elixirconf-us
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #blog-post
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #security
- #elixirconf-eu
- #processes
- #api
- #forms
- #hex










Showing Posts 1 to 4- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
MikaelFangel
If the books are written by AI to catch AI mistakes how do make sure that the AI writing the book does not make the same mistakes as it would when writing code? Do you have a human review/verification step?
I at least think it would be nice to know how AI was used in the process before committing myself to a book.
ayarodionov
It took the examples from documentation. So go ahead and read the books.
MikaelFangel
Then what does it provide that the documentation not already does?
mudasobwa
Well, you have both Erlang and Elixir and pattern matching falls into Elixir part. Basically, what you call Erlang should have been called OTP.
That said, I would strongly discourage newbies to read this book and anything else produced by AI on that matter.