Projects and practice
The last part builds: a command line tool, a TCP server that keeps its clients, performance and the profilers that measure it, and a tour of the OTP 27 features the earlier lessons used. The last lessons are the field guide to the errors a beginner meets, a supervised project with a test suite and a release, and the libraries this environment cannot fetch. Everything runs on the Erlang runtime the course installed in the first part.
Read the capstones after the OTP part. They assume a supervisor, a gen_server and an ETS table, and they put the three together in a program the reader can run end to end.
12.1
Capstone: todo CLI
a command line tool, an escript, and a file that keeps the tasks
Open
12.2
Capstone: TCP server
an accept loop, a handler per client, and a table of live sockets
Open
12.3
Performance
what costs time, the data structure that fits, and a measurement before a change
Open
12.4
Modern Erlang tour
OTP 27 strings, sigils, the json module and persistent_term
Open
12.5
Performance profiling
timer:tc, a call counter on erlang:trace, and the profilers of OTP
Open
12.6
Common errors
the messages a beginner meets, each with its cause and its fix
Open
12.7
A finishing project
a supervised store, a test suite and a release
Open
12.8
Libraries without Hex
what OTP covers, and the packages this environment cannot fetch
Open