~/talk

Structs for order

Talkat Code BEAM Lite Berlin 2018 · on Friday, 2018-10-12· [software-architecture]
slides:none on file

Argues that Elixir structs become self-contained domain bricks rather than anonymous maps and shows concrete patterns: use Ecto schemas as structs to get casting and validations for free, implement request/response struct modules and a small plug that builds a request struct and assigns it to conn with a fallback controller for errors, and delegate business work to separate modules. Benchmarks show hand‑rolled plain struct handling is faster but Ecto validation costs are small (around six microseconds), a practical tradeoff.

AI-written summary · about

  1. 0:00Intro
  2. 0:43Me: quick facts
  3. 1:47"Container" data types
  4. 2:48Contract
  5. 5:25Responsibility
  6. 8:03Ecto's embedded schema
  7. 9:17More practical example
  8. 11:07How it could be
  9. 14:12Before you ask
  10. 16:56Ecto's schema vs plain struct
~/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.