YoVDO

Readers vs Constructors - Dependency Injection Showdown

Offered By: Scala Days Conferences via YouTube

Tags

Scala Days Courses Java Courses Scala Courses Dependency Injection Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the world of dependency injection in Scala through this 49-minute conference talk from Scala Days Chicago 2017. Dive into various approaches for managing in-code dependencies, a crucial decision in project development. Compare the evolution of dependency injection techniques, from the boilerplate-heavy Cake Pattern to constructor-based wiring with MacWire, hybrid service locators like SubCut and Scaldi, and the functional approach using the Reader Monad. Evaluate the pros and cons of each method, including the use of established Java solutions like Guice. Through practical examples involving a key-value store and food storage system, gain insights into compile-time errors, method signatures, and tracking effects. Conclude with a comprehensive summary of dependency injection strategies to enhance your Scala development skills.

Syllabus

Introduction
Dependency Injection
What you dont need
Who is Adam
KeyValue Store
Food Storage
Add Food
Class Parameters
Compile Time Error
Create IOT dependency
Change method signature
Reader monad
Remove function
Tracking effects
Combining the two
Summary


Taught by

Scala Days Conferences

Related Courses

Algorithms, Part I
Princeton University via Coursera
Introduction à la programmation orientée objet (en Java)
École Polytechnique Fédérale de Lausanne via Coursera
MongoDB for Java Developers
MongoDB University
Initiation à la programmation (en Java)
École Polytechnique Fédérale de Lausanne via Coursera
Intro to Java Programming
San Jose State University via Udacity