~/talk

From dependency injection to dependency rejection

Talkat Build Stuff 2017 · 2017-11-15..11-19· [software-architecture]
slides:none on file

Argues that partial application in F# is equivalent to constructor injection (it compiles to a class with three fields and a constructor) but that pattern is not pure functional because it makes the whole dependency graph impure; demonstrates with a restaurant-reservation API refactor from OO MatreD + repository into F# functions and a Haskell port. Replaces indirect input/output by returning a decision (reservation option) and composing impure I/O at the edges — an impure–pure–impure sandwich — using partial application = constructor injection at IL level and separate decision (pure) from effect (impure).

AI-written summary · about

  1. 0:00Introduction and setup
  2. 3:44Dependency injection recap
  3. 14:33Partial application in F#
  4. 28:09What is a pure function?
  5. 37:59Why DI isn't functional
  6. 40:02Refactoring to pure functions
  7. 50:32Impure pure impure sandwich
  8. 53:43Summary and conclusion
~/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.