~/talk

OTP behaviours and how to behave around them

Talkat Code BEAM SF 2019 · 2019-02-28..03-01· [software-architecture]
slides:none on file

Argues that OTP behaviours are design patterns not mere interfaces and demonstrates concrete Elixir code: replacing direct gen_server casts with a module API, extracting a reusable gen_buffer behaviour with a handle_flash callback, and keeping tests unchanged. Shows a default implementation, optional callbacks and state-in-behaviour patterns, and a non-process formatter-style behaviour. Claims this reduces duplication, makes changing implementations safe, and keeps tests and docs stable while trading a small runtime indirection for maintainability.

AI-written summary · about

  1. 0:00Intro
  2. 0:54What is OTP
  3. 10:34Server
  4. 11:46Encapsulation
  5. 15:40Testing
  6. 17:55Behaviours
  7. 22:24Dont do this
  8. 23:45Be intuitive
  9. 29:26Default implementation
  10. 34:19Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.