~/talk

Get Your CRUD Together!

Talkat ElixirConf EU 2022 · 2022-06-09..06-10· [software-architecture]
name:Andrew Ek
links:none on file
slides:none on file

Argues CRUD apps for small teams benefit from a dedicated data access layer that wraps Ecto into a GenericRepo macro, uses composable Ecto queries and clear Boundaries to standardize shapes and reduce variation. Demonstrates code: repo.all/get/create/update wrappers, named bindings for joins, and returning {:ok, value} or {:error, reason} instead of nil. Targets internal apps with ~hundreds of users, claims faster time to market and fewer bugs, and warns the pattern works well from 0→1 but can be outgrown as traffic and complexity rise.

AI-written summary · about

  1. 0:0005:45 - Intro
  2. 5:4610:02 - Motivations
  3. 10:0315:22 - The Data Access Layer
  4. 15:2318:50 - Patterns I Like
  5. 18:5125:16 - Compasable Queries
  6. 25:1740:57 - The GenericRepo
~/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.