Upgrade to Pro — share decks privately, control downloads, hide ads and more …

You Used To Inject Me In Your Constructor

mathonsunday
December 14, 2015

You Used To Inject Me In Your Constructor

Presented at Functional Swift Conference 2015.

mathonsunday

December 14, 2015
Tweet

More Decks by mathonsunday

Other Decks in Programming

Transcript

  1. WHY

  2. –HaskellWiki “…expressions are not evaluated when they are bound to

    variables, but their evaluation is deferred until their results are needed by other computations. ”
  3. –HaskellWiki “This makes it possible to defer the computation of

    values until they are needed, that is, to compute them lazily. ”
  4. –Python 3 Tutorial “ If the same input or a

    function call with the same parameters is used, the previously stored results can be used again and unnecessary calculation are avoided.”
  5. –In today’s post-OO world, is dependency injection still relevant? “Currently

    we use the same mechanism – parameters – to define the environment (e.g. via constructor parameters), as we use to pass data around functions.”
  6. –Don’t Fear The Reader “…if you break down common dependency

    injection libraries they are just different implementations of the Reader Monad pattern.”