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

Teaching Domain Specific Languages in Scala
Scala Days Conferences via YouTube
Why Dolly Is Just the Beginning for Open LLM Models
Scala Days Conferences via YouTube
Building Billion Node Graphs for Machine Learning
Scala Days Conferences via YouTube
How Does Incremental Compilation Work with Scala 3
Scala Days Conferences via YouTube
AI Assisted Development
Scala Days Conferences via YouTube