~/talk

From Dependency injection to dependency rejection

Talkat NDC London 2017 · 2017-01-16..01-20· [functional-programming, testing]
slides:none on file

Shows a concrete restaurant-reservation example implemented in C#, F# and Haskell and claims that partial application compiles to constructor injection — the F# version decompiles to an IL class with fields and a constructor, so it behaves like DI but remains impure. Refactors the code so the core function tryAccept takes a reservation and a reservation list and returns a decision (reservation option), i.e. pure core returns a decision, and composes impure IO around it in an impure–pure–impure "sandwich". The refactoring compiles and preserves behavior.

AI-written summary · about

  1. 0:00Start
  2. 26:38Is it Functional?
  3. 33:28Sanity check
  4. 37:57Not Functional
~/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.