filmov
tv
Ktor and Dependency Injection

Показать описание
Even so loyal viewer David remains unconvinced that he can replace Ktor, JetBrains’ server offering, with http4k, the plucky British underdog. So I decided to take a look at Ktor to understand why.
Looking back, I find it interesting that I didn’t use the phrase Dependency Injection at all during filming. Perhaps that’s because I’m not using a framework, perhaps because passing dependencies to constructors is just, erm, usual. Whatever the reason, stay tuned to see how to inject dependencies to make an application testable.
In this episode
00:01:05 Creating HTTP APIs example
00:02:05 Look at the tests
00:02:45 Add a test case for CustomerRoutes
00:04:04 How do the routes see the customers?
00:04:48 Ah, a global mutable variable
00:06:20 The third test shows our problem
00:07:12 Global state is preventing testing
00:08:27 Push the reference to the global out of our code
00:09:05 IntelliJ Introduce Parameter Bug
00:09:17 What is calling our configuration code then?
00:10:07 AI Assistant can fix things to be more explicit
00:11:39 So now we can move the state injection to the top level
00:12:13 Our tests though are not properly wired up
00:14:19 Remove duplication from the testApplication setup
00:16:27 Now make orders not global too
00:19:01 Stop using the production orders in the test
00:19:41 Checkin
Ktor and Dependency Injection
Managing Complexity With Ktor | Garth Gilmour
Full Guide to Dependency Injection With Koin for Compose Multiplatform - KMP for Beginners
The Ultimate Guide to Koin (Dependency Injection with Kotlin) - Android Studio Tutorial
3-Dagger2 Dependency Injection (DI) | Kotlin & Ktor
Dependency Injection with Koin - (Android Tutorial)
HTTP Requests in Kotlin Multiplatform With Ktor - KMP for Beginners
Retrofit vs ktor , android studio kotlin #android #kotlin
Koin 3.2 - Improving the Kotlin Developer Experience by Arnaud Giuliani
Using Ktor 3.0 with All the Shiny Things • Garth Gilmour • GOTO 2024
Build an eCommerce App with Clean Architecture in Android | Jetpack Compose, Ktor, Koin | Part 1
Dependency Injection in Kotlin with Koin | Setup & Implementation Guide
Kotlin Multiplatform Mobile & Ktor: Build a Social Media App - Part 13 Post Comments.
Websocket connection using Ktor in English
Ktor Tutorial - Building a RESTful API with JWT Authentication
Dependency Injection For Kotlin apps with Koin - Arnaud Giuliani at Kotlin Day 2019
Full Guide to Manual Dependency Injection + Removing Dagger
Basic set up of Ktor , #android #androiddeveloper #kotlin
Arnaud Giuliani - Dependency injection for Kotlin apps with Koin | Øredev 2019
Ktor Tutorial for Android & Kotlin Multiplatform - Make HTTP Calls
Caching the Data in a KMP App Using SQLDelight & Ktor (Compose Multiplatform)
The Compose Multiplatform Crash Course for 2025 - Build a Clean Code Book App
Dependency Injection in KMP with Koin - (Compose Multiplatform - Kotlin Multiplatform)
KMM http client in ktor in kotlin server #android #androidappdevelopment #kotlinmultiplatform
Комментарии