The Erlanger Playbook is an upcoming book written by Loïc Hoguin, author of Cowboy, Ranch, Gun, Erlang.mk and other Erlang/OTP projects. It provides a general exploration of Erlang/OTP; advice on writing Erlang code, writing tests and documentation and provide other Erlang-related insights.
In the Erlang section of the book, we learn about the building blocks of the Erlang language; we introspect a running Erlang/OTP system to understand how it functions; we learn about behaviors by writing our own
supervisor modules; we explore
gen_statem; and we build and discuss process regitries and process groups.
In the Code section of the book we learn how to start a project; we discuss version control, project structure, code style and best practices; we delve into various technical topics such as the "enter loop" mechanism, special processes, IOLists and the process dictionary; and we discuss how to deal with compilation warnings across Erlang/OTP versions.
In the Tests section we cover success typing analysis, manual testing, unit testing and functional testing; we also learn what to do about timeouts when testing an application and how to write client/server tests.
In the Documentation section we gain insight on how to write better tutorials, user guides, manuals and README files.
The Design section covers public interfaces, REST APIs and other lessons learned. The Workflow and Selling Erlang sections end this book with short, non-technical advice.
The book is roughly:
You may currently buy lifetime access to the book's git repository. This lifetime access will give you access to the pre-release builds and to any future release of the book.
The plan is to continue to add content to this book for a long time after its initial release, and to occasionally produce a proper edition of the book. The First Edition will feature the same content as is currently available in the most recent pre-release build. The First Edition will be released after an editing pass has been done.
The First Edition and any subsequent editions will be available both as an ebook and on a print-on-demand service. It will be possible to buy the First Edition at a price lower than the lifetime access, though the price remains to be determined.
Buyers of the lifetime access of the book will receive all releases and pre-releases as ebook versions. A coupon code will also be provided on demand for those that want to print the book. The coupon will reduce the price to the printing costs (you do not have to buy the content twice).
The lifetime access costs 50€ (EUR) and may be bought using Paypal:
There will be a delay between payment and delivery of the credentials to access the git repository and download pages for the book. This process is currently manual.
As the book is a pre-release, feedback is more than welcome. You can send your comments to the contact address at the top of this website.
Donate to Loïc Hoguin because his work on Cowboy, Ranch, Gun and Erlang.mk is fantastic:
Recurring payment options are also available via GitHub Sponsors. These funds are used to cover the recurring expenses like food, dedicated servers or domain names.