Varvet

Posts

Showing all posts with the topic dependency-injection

  • Inject roles, not objects

    This post focusses on a specific aspect of Dependency Injection as applied to Ruby, namely: how should we think about the things that we're injecting?

    READMORE

    Consider the following Ruby code:

    # app/services/widget_assembler.rb
    
    class...

The Archive