~/talk

Refactoring Elixir for maintainability

Talkat Code BEAM SF 2019 · 2019-02-28..03-01· [elixir-and-erlang]
links:none on file
slides:none on file

Argues that heavy pattern matching often hides duplication and suggests replacing ad‑hoc guards with concrete abstractions: build a blog using Elixir, Phoenix and Ecto, wrap markdown in a markdown struct, implement Phoenix’s safe protocol to auto‑render HTML via raw, and add an Ecto.Type behavior to cast/load/dump markdown to a DB string. The result is fewer template calls, centralized conversion logic, easier testing and maintainability—pattern used successfully on a production news app to reduce repeated plumbing.

AI-written summary · about

  1. 0:00Start
  2. 5:52Markdown
  3. 7:07Debugging
  4. 8:01Prevent User Input from Injecting Bad Values
  5. 9:29Refactor for Maintainability
  6. 10:50Protocol Consolidation
  7. 11:12Safe Protocol
  8. 13:02Behaviors
  9. 14:01Backing Type
~/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.