I highly recommend watching ‘Dead-Simple Dependency Injection’ by Runar Bjarnason. It covers using the Reader Monad in Scala. It also contains some good quotes such as:
Inversion of control is really just a pretentious way of saying ‘Taking an argument.’
True, very interesting talk, though not the style of doing DI that is my preferred one :). Still, it’s good to know the alternatives. The reader monad is in fact listed in the guide as another option.
Also, the guide says in fact a very similar thing, that DI is simply using constructor parameters :). So we agree here.
I highly recommend watching ‘Dead-Simple Dependency Injection’ by Runar Bjarnason. It covers using the Reader Monad in Scala. It also contains some good quotes such as:
True, very interesting talk, though not the style of doing DI that is my preferred one :). Still, it’s good to know the alternatives. The reader monad is in fact listed in the guide as another option.
Also, the guide says in fact a very similar thing, that DI is simply using constructor parameters :). So we agree here.
And this is why you always read the comments. Great video!