~/talk

From dependency injection to dependency rejection

slides:none on file

Covers a restaurant-reservation example that splits into five steps (validate, map, check capacity, save, respond), showing dependencies: an integer capacity and two functions readReservations(date) -> Reservation list and createReservation(Reservation) -> int. Shows F# partial application compiling to IL that creates a class with constructor-injected fields (same effect as constructor DI), then refactors to return a Reservation option so saving becomes a separate impure step. Argues that partial application makes impurity contagious, and prefers a impure–pure–impure sandwich via function composition to eliminate mocks and simplify testing.

AI-written summary · about

  1. 0:00Start
  2. 3:33What's Dependency Injection
  3. 4:11On Line Restaurant Reservation System
  4. 5:15Validate the Input
  5. 8:21Domain Objects
  6. 10:36Constructor Injection
  7. 21:09Pipe Operator
  8. 24:09Partial Application
  9. 31:21Impure Functions
  10. 43:48Pattern Matching
  11. 44:58Get Rid of Indirect Input
  12. 51:33The Earl of Sandwich
  13. 53:28Functional Programming
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.