~/talk

Boundaries

Talkat RubyConf 2012 · 2012-11-01..11-03· [testing, frontend-architecture]
slides:none on file

Argues that converting boundaries to functional core (pure functions returning values) plus an imperative shell (IO, DB, networks) removes fragile mocks, makes unit tests fast, and avoids boundary breaks; demonstrates a ~600-line Twitter client with a 153-line shell and a 35-line actor library but zero shell tests; points out path explosion (2^n, e.g. 500 conditionals → ~150-digit space), shows the value-based design easily parallelizes the sweeper into three cores, and warns about allocation costs on MRI versus actor-friendly VMs.

AI-written summary · about

  1. 0:00Intro
  2. 0:40Test doubles
  3. 6:34Why integration tests dont work
  4. 8:00Values
  5. 10:57Procedural vs Functional
  6. 14:07Reintroducing State
  7. 17:15Actor Model
  8. 18:30Boundary between components
  9. 21:41Testing
  10. 22:25Comments Questions
  11. 30:26Functional Example
  12. 32:00Cursor
  13. 33:04Cursor Manipulation
  14. 39:35Database clearing
~/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.