# Dependency injection

Dependency injection is a software design pattern that injects objects into a class instead of having the class create them itself.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## New in Symfony 8.2: Smarter Controller Arguments

DevFeed: [New in Symfony 8.2: Smarter Controller Arguments](<https://devfeed.tech/articles/new-in-symfony-8-2-smarter-controller-arguments-137827.md>)

Original publisher: [Read original article](<https://symfony.com/blog/new-in-symfony-8-2-smarter-controller-arguments>)

Author: Javier Eguiluz

Published: 2026-11-17T08:13:00Z

Content type: release

Language: en

Sources: [Symfony](<https://devfeed.tech/sources/symfony-blog.md>)

Topics: [Symfony](<https://devfeed.tech/topics/symfony.md>), [Parameter](<https://devfeed.tech/topics/parameter.md>), [data type](<https://devfeed.tech/topics/data-type.md>), [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [Authorization](<https://devfeed.tech/topics/authorization.md>), [console](<https://devfeed.tech/topics/console.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [apis](<https://devfeed.tech/tags/apis.md>), [arguments](<https://devfeed.tech/tags/arguments.md>), [commands](<https://devfeed.tech/tags/commands.md>), [console](<https://devfeed.tech/tags/console.md>), [controller](<https://devfeed.tech/tags/controller.md>), [request](<https://devfeed.tech/tags/request.md>), [symfony](<https://devfeed.tech/tags/symfony.md>)

### AI overview

Symfony 8.2 extends argument resolution across controller actions and invokable commands. Union and intersection service types autowire when all members alias the same service; mixed unions/intersections require `#[Autowire]`. Query and header mapping can defer unconvertible values to other resolvers, including those that build dates or entities. For `#[IsGranted]`, earlier checks still run before payload parsing, while a later check using a mapped argument maps and validates it before voting; invalid data therefore produces a validation error, and voters now receive the mapped object. `#[MapEntity]` can return arrays via `findBy()` (empty when no matches), and its `expr` can be a closure, requiring PHP 8.5 for closures in attributes. `#[MapQueryString(key: ...)]` accepts JSON strings and returns 400 for malformed JSON. Payload mapping falls back to `+json` or `+xml` media type suffixes when no matching decoder format is available, while configured encoders remain in use.

### Source excerpt

Symfony can inject services, map request data into typed objects and fetch Doctrine entities based on the arguments of your controllers. Symfony 8.2 improves this feature to make it work in more cases, and some improvements apply to console commands too....

## What extraction cannot slim, and whether function injection can: a pre-registered study of 580 Java repositories

DevFeed: [What extraction cannot slim, and whether function injection can: a pre-registered study of 580 Java repositories](<https://devfeed.tech/articles/what-extraction-cannot-slim-and-whether-function-injection-can-a-pre-registered-study-of-580-java-repositories-127236.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.10545>)

Author: Daniel Sagenschneider

Published: 2026-11-10T05:00:00Z

Content type: news

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [coding patterns](<https://devfeed.tech/topics/coding-patterns.md>), [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [return](<https://devfeed.tech/topics/return.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-assistants](<https://devfeed.tech/tags/ai-assistants.md>), [ai-coding-assistants](<https://devfeed.tech/tags/ai-coding-assistants.md>), [code](<https://devfeed.tech/tags/code.md>), [costs](<https://devfeed.tech/tags/costs.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [exit](<https://devfeed.tech/tags/exit.md>), [framework](<https://devfeed.tech/tags/framework.md>), [functions](<https://devfeed.tech/tags/functions.md>), [hypothesis](<https://devfeed.tech/tags/hypothesis.md>), [java](<https://devfeed.tech/tags/java.md>), [literals](<https://devfeed.tech/tags/literals.md>), [logic](<https://devfeed.tech/tags/logic.md>), [nested](<https://devfeed.tech/tags/nested.md>), [plan](<https://devfeed.tech/tags/plan.md>), [random](<https://devfeed.tech/tags/random.md>), [reading](<https://devfeed.tech/tags/reading.md>), [repositories](<https://devfeed.tech/tags/repositories.md>), [return](<https://devfeed.tech/tags/return.md>), [sample](<https://devfeed.tech/tags/sample.md>), [study](<https://devfeed.tech/tags/study.md>)

### AI overview

In a pre-registered scan of 3,026,902 methods from 580 Java repositories pinned before AI coding assistants were widely used, single-exit extraction could not slim 22.8% of long methods. Function injection, which splits code into framework-injected and sequenced functions that can end early and pass multiple values, handled 22.2% of those stuck methods (95% CI 20.3-24.3), refuting the hypothesis that it would handle at least a quarter. Nearly half of the stuck methods were early-return cases counted as conventionally fixable; injection split three quarters of those as written. Where extraction was possible, injection had lower estimated cost in 29.0% of cases versus extraction wrapped as one function and 17.2% versus plain extraction, usually using a straight function sequence. Among methods neither approach split, many were long because of tables or literals; others were blocked by loop jumps, oversized nested statements, or too many values. The findings come from the stated sample and fixed cost models; the authors propose follow-up studies, including on AI-assisted code.

### Source excerpt

arXiv:2611.10545v1 Announce Type: new Abstract: A method of 26 code lines or more reads as a Long Method, and Extract Method is the usual fix. Some long methods have no single-exit fix: a return cannot leave an extracted piece, a piece hands back one value, and some methods are knotted so that every cut is blocked. Function injection, as the OfficeFloor framework does it, cuts differently: each piece becomes a function the framework injects and sequences, an early return ends a function, and a function hands on several values. The framework's author pre-registered a test of whether it takes apart what extraction cannot. A stratified random sample of 580 open-source Java repositories, each pinned before AI coding assistants were in general use, was scanned by released tools whose cost models were fixed before the sample was drawn: 3,026,902 methods, 168,466 of them long. Single-exit extraction cannot slim 22.8% of the long methods. The registered hypothesis, that at least a quarter of those stuck methods are ones only function injection takes apart, is refuted: 22.2% (95% CI 20.3 to 24.3). Nearly half of the stuck methods are early-return methods the plan counts as conventionally fixable, and the split takes three in four of those apart as they stand. Where extraction would do, the split chooses injection and costs less for 29.0% against extraction wrapped as one function and 17.2% against plain extraction, almost always as a straight sequence of functions. An exploratory reading of the quarter of the stuck methods that neither takes apart finds a third of it tables and literals, long for their data rather than their logic, and most of the rest blocked by a jump inside a loop, by a nested statement too large to cut, or by values too many for any cut. Three registered studies are proposed: the classes as rules in the tools, a refinement per class, and the same measures on code written with AI assistants.

## Koin Skills: Koin, the Right Way, with Your Agent

DevFeed: [Koin Skills: Koin, the Right Way, with Your Agent](<https://devfeed.tech/articles/koin-skills-koin-the-right-way-with-your-agent-119279.md>)

Original publisher: [Read original article](<https://blog.insert-koin.io/koin-skills-koin-the-right-way-with-your-agent-4fe1b49d511c?source=rss----925561f2ecdf---4>)

Author: Arnaud Giuliani

Published: 2026-11-05T09:01:03Z

Content type: release

Language: en

Sources: [Koin developers](<https://devfeed.tech/sources/koin-developers-medium.md>)

Topics: [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [koin](<https://devfeed.tech/topics/koin.md>), [Agent Skills](<https://devfeed.tech/topics/agent-skills.md>), [Claude Code](<https://devfeed.tech/topics/claude-code.md>), [Dagger](<https://devfeed.tech/topics/dagger.md>), [dagger-hilt](<https://devfeed.tech/topics/dagger-hilt.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [android](<https://devfeed.tech/tags/android.md>), [android-compose](<https://devfeed.tech/tags/android-compose.md>), [annotations](<https://devfeed.tech/tags/annotations.md>), [compile](<https://devfeed.tech/tags/compile.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [compose](<https://devfeed.tech/tags/compose.md>), [crashes](<https://devfeed.tech/tags/crashes.md>), [dagger](<https://devfeed.tech/tags/dagger.md>), [dagger-2](<https://devfeed.tech/tags/dagger-2.md>), [dependency](<https://devfeed.tech/tags/dependency.md>), [dependency-injection](<https://devfeed.tech/tags/dependency-injection.md>), [di](<https://devfeed.tech/tags/di.md>), [diagnose](<https://devfeed.tech/tags/diagnose.md>), [frameworks](<https://devfeed.tech/tags/frameworks.md>), [hilt](<https://devfeed.tech/tags/hilt.md>), [koin](<https://devfeed.tech/tags/koin.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [skills](<https://devfeed.tech/tags/skills.md>)

### AI overview

The Koin plugin for Claude Code provides four skills for setup, writing Koin code, DI migration, and diagnosis, plus an optional Kotzilla MCP server. The skills target Koin 4.x and adapt to Annotations or DSL workflows; the Compiler Plugin is recommended but optional, and checks Koin DSL graphs at build time. Migration from Hilt, Dagger 2, Toothpick, Kodein, or older Koin versions is staged so both containers can coexist while modules move incrementally. Code-level diagnosis works without Kotzilla; runtime investigations such as slow startup, memory issues, duplicate instances, and scope leaks require the Kotzilla SDK for session data. The plugin is built for Claude Code; other agents can use skill archives and configure the MCP endpoint manually.

### Source excerpt

Hello, dear Koin community 👋 AI agents write good Kotlin. With Koin, it's another story: outdated patterns, wrong DI decisions, or a build error fixed without looking at what happens at runtime. Today, I'm happy to share the official Koin skills for AI agents, released as the koin plugin for Claude Code. They help your agent write today's Koin: compile safety for all Koin DSL with Koin Compiler 1.2, migration from Dagger 2, Toothpick and other DI frameworks (Hilt...), and a koin skill that pushes back on DI mistakes. With the Kotzilla MCP Server, included in the plugin, your agent can also investigate how your app really behaves. Let's go through what it does, and how it helps you every day. Your coding agent, now writing today's KoinTL;DR The koin plugin brings four skills and one MCP server. Your agent picks the right one when a task touches dependency injection, and you can always call a skill by name. koin-setup: adds Koin to a new or legacy project (Android, Compose, KMP, Ktor), compile-safe from day one. koin: writes definitions, modules and injection in your project's style, and pushes back on DI mistakes. di-migration: moves you from Hilt, Dagger, Toothpick, or Kodein, one module at a time, while your app keeps shipping. It also upgrades Koin 3.x and Koin KSP projects. koin-diagnose: fixes Koin errors and crashes, and explains slow startup or instances created twice. Kotzilla MCP Server: included and optional. Once you sign in, it brings runtime data from your debug and production sessions. All skills target Koin 4.x and adapt to your project: Koin Annotations, Koin DSL with the Compiler Plugin, or Koin DSL without it. The Compiler Plugin is recommended, never forced. Why skills, why now Ask any AI agent to add Koin to your project today, and there is a good chance you get something like this: // Old Koin generate ... // build.gradle.kts ksp("io.insert-koin:koin-ksp-compiler:1.3.1") // KSP: replaced by the Koin Compiler Plugin // Application startKoin { module

## The complexity you remove from your library doesn't disappear. It moves.

DevFeed: [The complexity you remove from your library doesn't disappear. It moves.](<https://devfeed.tech/articles/the-complexity-you-remove-from-your-library-doesn-t-disappear-it-moves-109525.md>)

Original publisher: [Read original article](<https://newsletter.francofernando.com/p/the-complexity-you-remove-from-your>)

Author: Franco Fernando

Published: 2026-10-30T09:38:01Z

Content type: article

Language: en

Sources: [The Polymathic Engineer](<https://devfeed.tech/sources/the-polymathic-engineer.md>)

Topics: [Library](<https://devfeed.tech/topics/library.md>), [abstraction](<https://devfeed.tech/topics/abstraction.md>), [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [Error Handling](<https://devfeed.tech/topics/error-handling.md>)

Tags: [about](<https://devfeed.tech/tags/about.md>), [abstract](<https://devfeed.tech/tags/abstract.md>), [abstraction](<https://devfeed.tech/tags/abstraction.md>), [abstractions](<https://devfeed.tech/tags/abstractions.md>), [account](<https://devfeed.tech/tags/account.md>), [adopting](<https://devfeed.tech/tags/adopting.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-software](<https://devfeed.tech/tags/ai-software.md>), [ai-software-factory](<https://devfeed.tech/tags/ai-software-factory.md>), [algorithm](<https://devfeed.tech/tags/algorithm.md>), [all](<https://devfeed.tech/tags/all.md>), [clients](<https://devfeed.tech/tags/clients.md>), [complexity](<https://devfeed.tech/tags/complexity.md>), [doesn-t](<https://devfeed.tech/tags/doesn-t.md>), [latency](<https://devfeed.tech/tags/latency.md>), [library](<https://devfeed.tech/tags/library.md>), [pool](<https://devfeed.tech/tags/pool.md>), [thread](<https://devfeed.tech/tags/thread.md>), [thread-pool](<https://devfeed.tech/tags/thread-pool.md>)

### AI overview

The article's central finding is that extensibility shifts complexity among a library, its clients, and runtime operations; it does not remove it. In a C# message publisher example, an `IMetricsProvider` decouples the component from a metrics vendor, but makes clients implement the interface. Shipping a default implementation keeps that burden in the component while allowing alternatives. Hooks let clients run code between message-building and publishing, but introduce failure and latency risks; offloading them to threads still requires waiting for completion and can exhaust a pool. Listeners notify asynchronously without delaying the next phase, but need safe, preferably immutable event data and protection against notification backlogs. The article recommends choosing explicit, evidence-based extension points and weighing the flexibility against who bears the added complexity.

### Source excerpt

To your clients, to a thread pool, or into your latency.

## App Architecture: Analytics

DevFeed: [App Architecture: Analytics](<https://devfeed.tech/articles/app-architecture-analytics-103675.md>)

Original publisher: [Read original article](<https://proandroiddev.com/app-architecture-analytics-ec3471ca619b?source=rss----c72404660798---4>)

Author: Mkhytar Mkhoian

Published: 2026-10-27T23:25:11Z

Content type: article

Language: en

Sources: [ProAndroidDev](<https://devfeed.tech/sources/proandroiddev-medium.md>)

Topics: [architecture-components](<https://devfeed.tech/topics/architecture-components.md>), [product analytics](<https://devfeed.tech/topics/product-analytics.md>), [Dependency Inversion](<https://devfeed.tech/topics/dependency-inversion.md>), [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [adapter pattern](<https://devfeed.tech/topics/adapter-pattern.md>), [async](<https://devfeed.tech/topics/async.md>)

Tags: [analytics](<https://devfeed.tech/tags/analytics.md>), [android](<https://devfeed.tech/tags/android.md>), [android-app-development](<https://devfeed.tech/tags/android-app-development.md>), [androiddev](<https://devfeed.tech/tags/androiddev.md>), [app-architecture](<https://devfeed.tech/tags/app-architecture.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>)

### AI overview

The article proposes keeping analytics vendors out of feature code: features emit app-defined events and user properties, while vendor-specific factories map events and trackers call SDKs. A dispatcher forwards calls off the main thread so one vendor's crash does not prevent others from receiving an event. In modular apps, features own their events and factories, DI collects them, and only the app module sees the full graph. The approach aims to avoid a central analytics god object, isolate vendor changes, preserve parameter types, and give ViewModels small interfaces that are easy to test. The author says the open-source Herald library implements this design.

### Source excerpt

Photo by Hunter Harritt on Unsplash It's been a while since the last time I covered app architecture topics. Today I am back with a new one. This time it's analytics and everything around it. The problem We engineers often treat analytics as a secondary piece of software. We spend so much time on the architecture design of the main parts and so little on designing analytics as part of the program that it always leads to a bad cocktail. This cocktail brings a bad smell to the code, some workarounds, and forces us to make exceptions to the architecture rules. In practice, developers spend time thinking about general architecture; no one thinks about analytics at that moment. Then business comes and asks to track this and that. Send a couple of events to a third-party analytics vendor, and devs start thinking about how to do that and integrate analytics. After some time, business asks to add more events for a new vendor. Now you need to not only track it, but also manage vendors and decide which event goes where. In code, it looks like one AnalyticsRepository or AnalyticsManager class that contains all analytics-related stuff, a huge list of methods where each of them calls due to tracking events. A god object class engineers drag across the codebase and make different components and layers depend on it. And here we are, holding a bad cocktail in our hand. The idea So how to stop making this cocktail? I came to a simple idea: the app should not know which analytics vendors exist. Feature code doesn't need to care if an event goes to Firebase, Mixpanel, AppsFlyer or all of them. It should only say what happened, in the app's own words. "Ticket purchased", "Settings screen opened". Where the event goes and in what format each vendor wants it is a different job, and it should live in a different place. Instead of one god object that knows everything, let's split the work into small pieces, and each piece has one job: The Event Event describes what happened, in the app's w

## Hardening Coroutine Tests - Kevin Schildhorn

DevFeed: [Hardening Coroutine Tests - Kevin Schildhorn](<https://devfeed.tech/articles/hardening-coroutine-tests-kevin-schildhorn-98452.md>)

Original publisher: [Read original article](<https://touchlab.co/flake-free-flow-tests-pt1-coroutines>)

Published: 2026-10-23T18:00:00Z

Content type: article

Language: en

Sources: [Touchlab](<https://devfeed.tech/sources/touchlab-enterprise-mobile-innovation-development.md>)

Topics: [coroutine-testing](<https://devfeed.tech/topics/coroutine-testing.md>), [coroutines-flow](<https://devfeed.tech/topics/coroutines-flow.md>), [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [scheduling](<https://devfeed.tech/topics/scheduling.md>)

Tags: [background-work](<https://devfeed.tech/tags/background-work.md>), [best-practices](<https://devfeed.tech/tags/best-practices.md>), [cache](<https://devfeed.tech/tags/cache.md>), [channel](<https://devfeed.tech/tags/channel.md>), [ci](<https://devfeed.tech/tags/ci.md>), [cleanup](<https://devfeed.tech/tags/cleanup.md>), [clock](<https://devfeed.tech/tags/clock.md>), [clocks](<https://devfeed.tech/tags/clocks.md>), [collector](<https://devfeed.tech/tags/collector.md>), [coroutine](<https://devfeed.tech/tags/coroutine.md>), [coroutine-testing](<https://devfeed.tech/tags/coroutine-testing.md>), [coroutines](<https://devfeed.tech/tags/coroutines.md>), [coroutinescope](<https://devfeed.tech/tags/coroutinescope.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [delay](<https://devfeed.tech/tags/delay.md>), [dependency-injection](<https://devfeed.tech/tags/dependency-injection.md>), [dispatcher](<https://devfeed.tech/tags/dispatcher.md>), [emissions](<https://devfeed.tech/tags/emissions.md>), [flow](<https://devfeed.tech/tags/flow.md>), [kotlin-multiplatform](<https://devfeed.tech/tags/kotlin-multiplatform.md>), [scheduler](<https://devfeed.tech/tags/scheduler.md>), [tests](<https://devfeed.tech/tags/tests.md>), [turbine](<https://devfeed.tech/tags/turbine.md>)

### AI overview

Use StandardTestDispatcher with the runTest testScheduler, and inject dispatchers, scopes, and clocks so test work uses controlled virtual time. Drive scheduled work with runCurrent, advanceTimeBy, or advanceUntilIdle; inject TimeSource when code reads elapsed time or timestamps. Use backgroundScope for endless observers and settle it with runCurrent or advanceTimeBy; use a cancellable SupervisorJob scope for finite fire-and-forget work. Avoid parallel tests that set global Dispatchers.Main, and reset it after use. For necessary real-thread tests, keep most work virtual, synchronize on signals such as join or awaitItem rather than sleeps, use generous timeouts, cancel created scopes, and assert final values or invariant patterns instead of exact emission sequences. The supplied article excerpt reports substantial ordering variation and stale results in its repeated experiments, and warns that detached failures or shared state can cause false passes and cross-test flakiness.

### Source excerpt

Why coroutine tests flake, and the dispatcher and scheduler habits that stop it.

## .NET 8 Features You're Not Using (But Should Carry Into .NET 10)

DevFeed: [.NET 8 Features You're Not Using (But Should Carry Into .NET 10)](<https://devfeed.tech/articles/net-8-features-you-re-not-using-but-should-carry-into-net-10-90785.md>)

Original publisher: [Read original article](<https://blog.devops.dev/net-8-features-youre-not-using-but-should-carry-into-net-10-64a20f7eda88?source=rss----33f8b2d9a328---4>)

Author: Bharat Chandera

Published: 2026-10-20T13:26:15Z

Content type: article

Language: en

Sources: [DevOps.dev](<https://devfeed.tech/sources/devops-dev.md>)

Topics: [.NET](<https://devfeed.tech/topics/net.md>), [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [ASP.NET Core](<https://devfeed.tech/topics/asp-net-core.md>), [Boilerplate](<https://devfeed.tech/topics/boilerplate.md>)

Tags: [asp-net-core](<https://devfeed.tech/tags/asp-net-core.md>), [aspnetcore](<https://devfeed.tech/tags/aspnetcore.md>), [csharp](<https://devfeed.tech/tags/csharp.md>), [dependency-injection](<https://devfeed.tech/tags/dependency-injection.md>), [dotnet](<https://devfeed.tech/tags/dotnet.md>), [net](<https://devfeed.tech/tags/net.md>), [net-10](<https://devfeed.tech/tags/net-10.md>), [programming](<https://devfeed.tech/tags/programming.md>), [services](<https://devfeed.tech/tags/services.md>), [software-development](<https://devfeed.tech/tags/software-development.md>)

### AI overview

The excerpt's main point is that adopting several .NET 8 improvements can remove boilerplate, dependencies, and flaky tests, and that these improvements still work in .NET 10. Its concrete example is keyed dependency injection: instead of writing a factory, filtering `IEnumerable<IPaymentGateway>`, or using a third-party container to choose between implementations such as Stripe and PayPal, register each implementation with a key and request it by key. The excerpt names TimeProvider, frozen collections, global exception handling, and built-in resilience but provides no details on their use.

### Source excerpt

Keyed services, TimeProvider, frozen collections, global exception handling and built-in resilience: five practical upgrades that quietly... Continue reading on DevOps.dev "

## Create and customize a full-stack Java ride-hailing app with Wayline

DevFeed: [Create and customize a full-stack Java ride-hailing app with Wayline](<https://devfeed.tech/articles/create-an-uber-clone-in-1-minute-88872.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/create-an-uber-clone-in-1-minute/>)

Author: Shai Almog

Published: 2026-10-16T00:00:00Z

Content type: article

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [Back end](<https://devfeed.tech/topics/backend.md>), [API Platform](<https://devfeed.tech/topics/api-platform.md>), [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [full-stack](<https://devfeed.tech/tags/full-stack.md>), [java](<https://devfeed.tech/tags/java.md>), [license](<https://devfeed.tech/tags/license.md>), [uber](<https://devfeed.tech/tags/uber.md>)

### AI overview

Wayline is a full-stack, white-label ride-hailing application written in Java, with rider, driver, and administration workflows, payments, live tracking, and push notifications. The article explains how to generate and adapt the project, describes its architecture and implementation, and outlines practical limits such as payment-provider setup and production operations. The source is available under the MIT-0 license.

### Source excerpt

Own a full-stack Java ride-hailing application: rider, driver and admin apps, payments, live tracking and push. Customize Wayline under the royalty-free MIT-0 license.

## The Art of Object-Oriented Programming

DevFeed: [The Art of Object-Oriented Programming](<https://devfeed.tech/articles/the-art-of-object-oriented-programming-64579.md>)

Original publisher: [Read original article](<https://hackernoon.com/the-art-of-object-oriented-programming?source=rss>)

Author: Syed Ahmer Shah

Published: 2026-10-04T11:53:47Z

Content type: tutorial

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [Object-oriented programming (OOP)](<https://devfeed.tech/topics/oop.md>), [Polymorphism](<https://devfeed.tech/topics/polymorphism.md>), [solid principles](<https://devfeed.tech/topics/solid-principles.md>), [Inheritance](<https://devfeed.tech/topics/inheritance.md>), [class](<https://devfeed.tech/topics/class.md>), [object](<https://devfeed.tech/topics/object.md>), [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>)

Tags: [common-oop-design-mistakes](<https://devfeed.tech/tags/common-oop-design-mistakes.md>), [composition](<https://devfeed.tech/tags/composition.md>), [composition-over-inheritance](<https://devfeed.tech/tags/composition-over-inheritance.md>), [coupling](<https://devfeed.tech/tags/coupling.md>), [coupling-and-cohesion-in-oop](<https://devfeed.tech/tags/coupling-and-cohesion-in-oop.md>), [design-patterns](<https://devfeed.tech/tags/design-patterns.md>), [four-pillars-of-oop](<https://devfeed.tech/tags/four-pillars-of-oop.md>), [inheritance](<https://devfeed.tech/tags/inheritance.md>), [object-oriented](<https://devfeed.tech/tags/object-oriented.md>), [object-oriented-programming](<https://devfeed.tech/tags/object-oriented-programming.md>), [oop-design-principles](<https://devfeed.tech/tags/oop-design-principles.md>), [oop-principles](<https://devfeed.tech/tags/oop-principles.md>), [polymorphism](<https://devfeed.tech/tags/polymorphism.md>), [programming](<https://devfeed.tech/tags/programming.md>)

### AI overview

A practical tutorial explains object-oriented programming through classes, objects, state, behavior, encapsulation, abstraction, inheritance, and polymorphism. It compares composition with inheritance and discusses association, aggregation, coupling, cohesion, and common design mistakes, using code examples to show how responsibilities can be separated in a software system.

### Source excerpt

Understand OOP from classes and objects to composition, inheritance, polymorphism, coupling, and cohesion with practical examples.

## The official FastAPI Redis SDK is now available

DevFeed: [The official FastAPI Redis SDK is now available](<https://devfeed.tech/articles/the-official-fastapi-redis-sdk-is-now-available-59560.md>)

Original publisher: [Read original article](<https://redis.io/blog/the-official-fastapi-redis-sdk-is-now-available/>)

Author: Tisho Mateev, Mirko Ortensi

Published: 2026-09-24T00:00:00Z

Content type: release

Language: en

Sources: [Redis Blog](<https://devfeed.tech/sources/redis-blog-2.md>), [Redis Blog](<https://devfeed.tech/sources/redis-blog.md>)

Topics: [FastAPI](<https://devfeed.tech/topics/fastapi.md>), [Redis](<https://devfeed.tech/topics/redis.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [SDK](<https://devfeed.tech/topics/sdk.md>), [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [HTTP](<https://devfeed.tech/topics/http.md>)

Tags: [cache](<https://devfeed.tech/tags/cache.md>), [dependency-injection](<https://devfeed.tech/tags/dependency-injection.md>), [engineering-ai](<https://devfeed.tech/tags/engineering-ai.md>), [fastapi](<https://devfeed.tech/tags/fastapi.md>), [giving](<https://devfeed.tech/tags/giving.md>), [http](<https://devfeed.tech/tags/http.md>), [pypi](<https://devfeed.tech/tags/pypi.md>), [redis](<https://devfeed.tech/tags/redis.md>), [sdk](<https://devfeed.tech/tags/sdk.md>), [tech](<https://devfeed.tech/tags/tech.md>)

### AI overview

Redis has released an official FastAPI SDK that integrates Redis with FastAPI's dependency model. It provides application-lifecycle connection management, synchronous and asynchronous dependencies, caching, HTTP cache-control behavior, and cache-entry invalidation. The SDK works with self-managed FastAPI deployments and FastAPI Cloud.

### Source excerpt

FastAPI now has an official Redis integration. With the fastapi-redis-sdk, we worked closely with the FastAPI team on what a naturally integrated Redis experience should look like, following FastAPI's dependency model instead of forcing Redis into pat...

## Introduction to Solon

DevFeed: [Introduction to Solon](<https://devfeed.tech/articles/introduction-to-solon-55727.md>)

Original publisher: [Read original article](<https://www.baeldung.com/java-solon-quick-tutorial>)

Author: Francesco Galgani

Published: 2026-09-21T04:05:19Z

Content type: tutorial

Language: en

Sources: [Baeldung](<https://devfeed.tech/sources/baeldung.md>)

Topics: [Java](<https://devfeed.tech/topics/java.md>), [Framework](<https://devfeed.tech/topics/framework.md>), [REST API](<https://devfeed.tech/topics/rest-api.md>), [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [HTTP](<https://devfeed.tech/topics/http.md>), [Database](<https://devfeed.tech/topics/database.md>), [Persistence](<https://devfeed.tech/topics/persistence.md>), [Maven](<https://devfeed.tech/topics/maven.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [dependency-injection](<https://devfeed.tech/tags/dependency-injection.md>), [framework](<https://devfeed.tech/tags/framework.md>), [fundamentals](<https://devfeed.tech/tags/fundamentals.md>), [h2](<https://devfeed.tech/tags/h2.md>), [http](<https://devfeed.tech/tags/http.md>), [java-web](<https://devfeed.tech/tags/java-web.md>), [java-web-h2-mybatis-rest-basics](<https://devfeed.tech/tags/java-web-h2-mybatis-rest-basics.md>), [mybatis](<https://devfeed.tech/tags/mybatis.md>), [persistence](<https://devfeed.tech/tags/persistence.md>), [popular](<https://devfeed.tech/tags/popular.md>), [rest](<https://devfeed.tech/tags/rest.md>), [rest-basics](<https://devfeed.tech/tags/rest-basics.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

A practical introduction to Solon, an independent enterprise Java framework. The tutorial builds a REST API that persists tasks in H2, compares Solon with Spring Boot, and covers configuration, dependency injection, HTTP handling, and testing.

### Source excerpt

Learn the fundamentals of Solon, including its architecture, dependency injection, configuration, HTTP handling, persistence, and testing, and see them in practice by building a REST API with MyBatis-Flex and H2. The post Introduction to Solon first appeared on Baeldung.

## The Android Startup Pattern: A Lifecycle-Aware, Multi-Module Approach

DevFeed: [The Android Startup Pattern: A Lifecycle-Aware, Multi-Module Approach](<https://devfeed.tech/articles/the-android-startup-pattern-a-lifecycle-aware-multi-module-approach-22950.md>)

Original publisher: [Read original article](<https://proandroiddev.com/the-android-startup-pattern-a-lifecycle-aware-multi-module-approach-d0f73e367a62?source=rss----c72404660798---4>)

Author: Ehab Elwan

Published: 2026-09-13T05:31:09Z

Content type: article

Language: en

Sources: [ProAndroidDev](<https://devfeed.tech/sources/proandroiddev-medium.md>)

Topics: [app startup](<https://devfeed.tech/topics/app-startup.md>), [Android](<https://devfeed.tech/topics/android.md>), [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [Coroutines](<https://devfeed.tech/topics/coroutines.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-tools](<https://devfeed.tech/tags/ai-tools.md>), [android](<https://devfeed.tech/tags/android.md>), [android-apps](<https://devfeed.tech/tags/android-apps.md>), [android-development](<https://devfeed.tech/tags/android-development.md>), [api](<https://devfeed.tech/tags/api.md>), [api-key](<https://devfeed.tech/tags/api-key.md>), [app](<https://devfeed.tech/tags/app.md>), [application](<https://devfeed.tech/tags/application.md>), [approach](<https://devfeed.tech/tags/approach.md>), [apps](<https://devfeed.tech/tags/apps.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [article](<https://devfeed.tech/tags/article.md>), [background](<https://devfeed.tech/tags/background.md>), [blocking](<https://devfeed.tech/tags/blocking.md>), [ccpa](<https://devfeed.tech/tags/ccpa.md>), [class](<https://devfeed.tech/tags/class.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [lifecycle](<https://devfeed.tech/tags/lifecycle.md>), [mobile-architecture](<https://devfeed.tech/tags/mobile-architecture.md>), [module](<https://devfeed.tech/tags/module.md>), [pattern](<https://devfeed.tech/tags/pattern.md>), [software-architecture](<https://devfeed.tech/tags/software-architecture.md>), [startup](<https://devfeed.tech/tags/startup.md>)

### AI overview

The article proposes a DI-driven Android startup architecture that separates process startup, foreground entry, authenticated sessions, and screen-specific data loading. Feature modules contribute tasks to injected sets; a shared runner orders them by priority, runs each phase concurrently, applies timeouts, and lets critical failures halt startup while logging noncritical failures. An application-scoped initializer exposes loading, success, and fatal-error states for splash-screen handling and retry; retry safety depends on idempotent tasks. Foreground tasks use ProcessLifecycleOwner so work waits until the app enters the foreground, while session tasks run in response to logged-in auth state. Consent-sensitive SDK tasks can observe vendor consent and enable or disable collection as choices change. The article reserves Jetpack App Startup for framework libraries that do not need app business logic, warning that pre-Application initialization can precede DI and consent evaluation. Screen data is loaded lazily through a StateFlow observed with lifecycle-aware collection. It notes that tasks must be main-safe and move CPU or I/O work to appropriate dispatchers.

### Source excerpt

A Clean, DI-Driven Architecture for Managing Cold Starts, Background Wakeups, and Privacy Compliance in Modern Android Apps Image generated by AIDisclosure: This article was drafted by me and refined with the help of AI tools. Every growing Android project eventually spawns a two-headed "God Class." On one side, your Application class becomes a dumping ground for global infrastructure--third-party SDKs, crash reporters, and tracking tools. On the other side, your main entry point (typically the MainViewModel) gets choked with UI-blocking startup logic. It usually looks something like this: The Anti-Pattern: The Two-Headed God Class class MyApplication : Application() { override fun onCreate() { super.onCreate() // The framework dumping ground CrashReportingSDK.getInstance().setCollectionEnabled(true) HeavyUiSDK.initialize(context = this, ...) AnalyticsSDK.initialize(this, "API_KEY") // ... 50 more lines of spaghetti } }class MainViewModel : ViewModel() { init { // The UI-blocking dumping ground updateRemoteConfigs() checkUserSessionToken() processPendingDeepLinks() prefetchHomeFeedData() // ... UI cannot render until this finishes } } Splitting initialization across these two files creates major problems: It breaks the Single Responsibility Principle: The app's entry points are forced to orchestrate the inner workings of every single feature, tightly coupling your modules. It ignores process lifecycles: Application tasks run indiscriminately on every silent background wakeup, while MainViewModel tasks fail to re-trigger when the app returns to the foreground. It destroys testability: Hardcoding SDK initializations directly into your entry points makes it incredibly difficult to write isolated unit tests without complicated mocking setups. It complicates privacy compliance: A centralized dumping ground makes it extremely difficult to dynamically suspend tracking SDKs until user consent under global privacy regulations (such as GDPR, CCPA, and CPRA) is explicitly grant

## Setting Up Koin in real project: A Step-by-Step Guide

DevFeed: [Setting Up Koin in real project: A Step-by-Step Guide](<https://devfeed.tech/articles/setting-up-koin-in-real-project-a-step-by-step-guide-22976.md>)

Original publisher: [Read original article](<https://blog.insert-koin.io/setting-up-koin-in-real-project-a-step-by-step-guide-1575e2357239?source=rss----925561f2ecdf---4>)

Author: Gabriel Bronzatti Moro

Published: 2026-09-07T12:01:03Z

Content type: tutorial

Language: en

Sources: [Koin developers](<https://devfeed.tech/sources/koin-developers-medium.md>)

Topics: [koin](<https://devfeed.tech/topics/koin.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [multiplatform](<https://devfeed.tech/topics/multiplatform.md>), [compose-multiplatform](<https://devfeed.tech/topics/compose-multiplatform.md>), [Learning](<https://devfeed.tech/topics/learning.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [catalog](<https://devfeed.tech/tags/catalog.md>), [community](<https://devfeed.tech/tags/community.md>), [compose](<https://devfeed.tech/tags/compose.md>), [compose-multiplatform](<https://devfeed.tech/tags/compose-multiplatform.md>), [data](<https://devfeed.tech/tags/data.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [football](<https://devfeed.tech/tags/football.md>), [guide](<https://devfeed.tech/tags/guide.md>), [kmp](<https://devfeed.tech/tags/kmp.md>), [koin](<https://devfeed.tech/tags/koin.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-multiplatform](<https://devfeed.tech/tags/kotlin-multiplatform.md>), [mobile-app-development](<https://devfeed.tech/tags/mobile-app-development.md>), [module](<https://devfeed.tech/tags/module.md>), [practical](<https://devfeed.tech/tags/practical.md>), [real-world](<https://devfeed.tech/tags/real-world.md>), [repositories](<https://devfeed.tech/tags/repositories.md>), [share](<https://devfeed.tech/tags/share.md>), [simulator](<https://devfeed.tech/tags/simulator.md>), [team](<https://devfeed.tech/tags/team.md>)

### AI overview

The guide sets up Koin 4.2.2 in a Kotlin Multiplatform app by placing shared dependencies in commonMain and Android-specific dependencies in androidMain and the Android app module. It registers repositories as singletons, use cases as factories, and ViewModels with the Compose ViewModel DSL. A shared startKoin bridge accepts a platform configuration lambda: Android passes its Application context from onCreate(), while iOS uses an empty block and calls initialization from the SwiftUI app launch. Composables obtain ViewModels with koinViewModel() defaults, which the guide says can be overridden with fakes in tests.

### Source excerpt

Hi everyone! 👋 In this article, we'll take a practical, step-by-step approach to setting up Koin in a real-world Kotlin Multiplatform (KMP) project. Instead of starting with an isolated example or a simple Hello World, we'll work with a project created by the CodandoTV community: the World Cup Best Team Simulator. The app allows users to browse football players by country and build their own dream team. It runs on both Android and iOS, using Kotlin Multiplatform for sharing business and data logic, and Compose Multiplatform to share the UI across platforms. Step 1: Add Koin Dependencies Add the Koin libraries to your version catalog: # gradle/libs.versions.toml [versions] koin = "4.2.2" [libraries] koin_core = { group = "io.insert-koin", name = "koin-core", version.ref = "koin" } koin_android = { group = "io.insert-koin", name = "koin-android", version.ref = "koin" } koin_compose = { module = "io.insert-koin:koin-compose", version.ref = "koin" } koin_compose_viewmodel = { module = "io.insert-koin:koin-compose-viewmodel", version.ref = "koin" } In the shared module shared/build.gradle.kts, split the dependencies by source set -- commonMain gets the shared Koin libraries, androidMain gets the Android-specific one: // shared/build.gradle.kts sourceSets { commonMain.dependencies { implementation(libs.koin.core) implementation(libs.koin.compose) implementation(libs.koin.compose.viewmodel) } androidMain.dependencies { implementation(libs.koin.android) } } In the Android app module androidApp/build.gradle.kts , add the Android Koin dependency: // androidApp/build.gradle.kts dependencies { implementation(libs.koin.android) implementation(libs.koin.core) }Step 2: Create the Data Module Create shared/src/commonMain/.../data/DataModule.kt . This module provides singleton instances -- repositories, and data sources that live for the entire app lifecycle. val dataModule = module { single<WorldCupRepository> { WorldCupRepositoryImpl(ioDispatcher = Dispatchers.IO) } }Step 3: Create

## AI Made Code Generation Cheaper, but Developer Judgment Still Depends on Context

DevFeed: [AI Made Code Generation Cheaper, but Developer Judgment Still Depends on Context](<https://devfeed.tech/articles/code-became-cheap-did-developer-knowledge-too-37464.md>)

Original publisher: [Read original article](<https://www.angularspace.com/code-became-cheap-did-developer-knowledge-too/>)

Author: Paweł Ostromecki

Published: 2026-08-24T15:52:12Z

Content type: opinion

Language: en

Sources: [Daniel Glejzner](<https://devfeed.tech/sources/daniel-glejzner.md>)

Topics: [Code](<https://devfeed.tech/topics/code.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Angular](<https://devfeed.tech/topics/angular.md>), [Maintainers](<https://devfeed.tech/topics/maintainers.md>), [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [ai](<https://devfeed.tech/tags/ai.md>), [angular](<https://devfeed.tech/tags/angular.md>), [code](<https://devfeed.tech/tags/code.md>), [dependency-injection](<https://devfeed.tech/tags/dependency-injection.md>), [developer](<https://devfeed.tech/tags/developer.md>), [maintainers](<https://devfeed.tech/tags/maintainers.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

This opinion article argues that AI has made code generation, syntax recall, and familiar implementations less scarce, but has not eliminated the value of developer knowledge. The author emphasizes that evaluating solutions for a real system still depends on product, codebase, team, failure costs, and future changes. It also notes that productivity findings vary by AI tool, developer experience, and task, citing differing METR results.

### Source excerpt

When implementation becomes abundant, selection becomes the work. For roughly eight years, I had a simple model of becoming a better developer. Read the documentation. Learn Angular properly. Understand RxJS, dependency injection, change detection, testing, state management, architecture. Look at how other people solve problems. Make enough mistakes to understand

## Add the dependency graph to a Kotlin K2 migration checklist

DevFeed: [Add the dependency graph to a Kotlin K2 migration checklist](<https://devfeed.tech/articles/add-the-dependency-graph-to-a-kotlin-k2-migration-checklist-23961.md>)

Original publisher: [Read original article](<https://cloud-inject.io/notes/k2-migration-injection-graphs/>)

Published: 2026-08-18T00:00:00Z

Content type: tutorial

Language: en

Sources: [Koin - Cloud-Inject.io -Kotzilla](<https://devfeed.tech/sources/koin-cloud-inject-io-kotzilla.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [migration](<https://devfeed.tech/topics/migration.md>), [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [Graphs](<https://devfeed.tech/topics/graphs.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [toolchain](<https://devfeed.tech/topics/toolchain.md>), [Android Gradle Plugin](<https://devfeed.tech/topics/android-gradle-plugin.md>), [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>)

Tags: [android-gradle-plugin](<https://devfeed.tech/tags/android-gradle-plugin.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [compose](<https://devfeed.tech/tags/compose.md>), [dependency-injection](<https://devfeed.tech/tags/dependency-injection.md>), [graph](<https://devfeed.tech/tags/graph.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [migration](<https://devfeed.tech/tags/migration.md>), [rollback](<https://devfeed.tech/tags/rollback.md>), [toolchain](<https://devfeed.tech/tags/toolchain.md>), [verification](<https://devfeed.tech/tags/verification.md>)

### AI overview

A practical checklist for Kotlin K2 migrations in projects that generate or validate dependency wiring. It recommends mapping the compiler and build toolchain, upgrading from a known compatibility matrix, cleaning and inspecting generated output, verifying dependency graphs across flavors and targets, testing runtime slices, and keeping rollback changes coherent.

### Source excerpt

A K2 migration is usually planned around source compatibility and compiler diagnostics. Projects that generate or validate dependency wiring need another checklist: compiler plugin versions, generated sources, metadata compatibility, and graph verification on every target. Map the toolchain first Record the Kotlin plugin, Compose compiler plugin, KSP or annotation tooling, dependency-injection compiler plugin, Android Gradle plugin, and target libraries. Upgrade from a known matrix instead of selecting each latest version independently.

## Build a dependency-graph inventory before changing the container

DevFeed: [Build a dependency-graph inventory before changing the container](<https://devfeed.tech/articles/build-a-dependency-graph-inventory-before-changing-the-container-23959.md>)

Original publisher: [Read original article](<https://cloud-inject.io/notes/dependency-graph-inventory/>)

Published: 2026-08-18T00:00:00Z

Content type: tutorial

Language: en

Sources: [Koin - Cloud-Inject.io -Kotzilla](<https://devfeed.tech/sources/koin-cloud-inject-io-kotzilla.md>)

Topics: [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [Android](<https://devfeed.tech/topics/android.md>), [test](<https://devfeed.tech/topics/test.md>), [Gradle](<https://devfeed.tech/topics/gradle.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [build](<https://devfeed.tech/tags/build.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [dependency](<https://devfeed.tech/tags/dependency.md>), [graph](<https://devfeed.tech/tags/graph.md>), [process](<https://devfeed.tech/tags/process.md>), [test](<https://devfeed.tech/tags/test.md>)

### AI overview

This tutorial recommends creating a framework-independent dependency-graph inventory before migrating dependency injection. It explains how to document entry points, ownership, implementations, lifetimes, qualifiers, modules, replacement values for tests, and architectural constraints, then validate the design through smaller executable test slices.

### Source excerpt

A dependency-injection migration often starts with framework syntax. That is too late. First describe the graph without using the framework's vocabulary. The inventory should show which objects exist, who owns them, and which runtime fact selects one implementation over another. Start from entry points List application entry points: the Android application, a worker, a navigation destination, a command-line process, and each test fixture. Trace the objects requested at each entry point. Stop the trace at explicit boundaries such as a database driver, HTTP transport, clock, file system, or platform service.

## Review a Koin upgrade as a graph change, not a version bump

DevFeed: [Review a Koin upgrade as a graph change, not a version bump](<https://devfeed.tech/articles/review-a-koin-upgrade-as-a-graph-change-not-a-version-bump-23963.md>)

Original publisher: [Read original article](<https://cloud-inject.io/notes/koin-version-upgrade-review/>)

Published: 2026-08-18T00:00:00Z

Content type: tutorial

Language: en

Sources: [Koin - Cloud-Inject.io -Kotzilla](<https://devfeed.tech/sources/koin-cloud-inject-io-kotzilla.md>)

Topics: [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [upgrade](<https://devfeed.tech/topics/upgrade.md>), [modules](<https://devfeed.tech/topics/modules.md>), [test](<https://devfeed.tech/topics/test.md>), [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [compose](<https://devfeed.tech/tags/compose.md>), [dependency-injection](<https://devfeed.tech/tags/dependency-injection.md>), [modules](<https://devfeed.tech/tags/modules.md>), [test](<https://devfeed.tech/tags/test.md>), [upgrade](<https://devfeed.tech/tags/upgrade.md>)

### AI overview

This tutorial explains how to review a Koin dependency-injection upgrade as an architecture change rather than a simple version bump. It recommends recording the existing dependency graph, modules, warnings, startup results, and verification output; upgrading mechanisms separately; checking all startup variants; and maintaining tested rollback procedures.

### Source excerpt

Dependency-injection upgrades can change more than API names. Verification behavior, annotation processing, Compose packages, compiler integration, and deprecations can all alter how the graph is built. Treat the upgrade as an architecture change with a defined before-and-after record. Freeze the current graph Before changing versions, save the dependency lock or resolved graph, the list of DI modules, startup smoke-test results, and verification-test output. Record warnings that already exist so a new warning is not confused with old noise.

## Find technical debt at dependency-injection boundaries

DevFeed: [Find technical debt at dependency-injection boundaries](<https://devfeed.tech/articles/find-technical-debt-at-dependency-injection-boundaries-23960.md>)

Original publisher: [Read original article](<https://cloud-inject.io/notes/dependency-injection-technical-debt/>)

Published: 2026-08-18T00:00:00Z

Content type: article

Language: en

Sources: [Koin - Cloud-Inject.io -Kotzilla](<https://devfeed.tech/sources/koin-cloud-inject-io-kotzilla.md>)

Topics: [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [Framework](<https://devfeed.tech/topics/framework.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [defects](<https://devfeed.tech/tags/defects.md>), [dependency-injection](<https://devfeed.tech/tags/dependency-injection.md>), [errors](<https://devfeed.tech/tags/errors.md>), [review](<https://devfeed.tech/tags/review.md>), [structure](<https://devfeed.tech/tags/structure.md>), [technical](<https://devfeed.tech/tags/technical.md>), [test](<https://devfeed.tech/tags/test.md>), [tests](<https://devfeed.tech/tags/tests.md>)

### AI overview

This article explains how dependency-injection code can expose architectural debt. It identifies signals such as oversized modules, string qualifiers, lifetime inversion, construction that starts work, broad production-container tests, and definitions spread across UI locations. It recommends paying down debt at product-slice boundaries, separating construction from behavior, adding focused graph and behavior tests, and measuring ownership, verification, startup, and test setup.

### Source excerpt

Dependency-injection code is often treated as plumbing. It is also a compact map of architecture decisions. Review it for debt signals before adding another binding. Signals worth investigating An oversized application module usually means feature boundaries are not explicit. String qualifiers can hide a missing type. Definitions that open databases or start jobs during graph creation mix construction with behavior. A process-scoped object that accepts a screen-owned dependency indicates lifetime inversion.

## Build a Dependency Injection Container in Vanilla JavaScript

DevFeed: [Build a Dependency Injection Container in Vanilla JavaScript](<https://devfeed.tech/articles/build-a-dependency-injection-container-in-vanilla-javascript-87897.md>)

Original publisher: [Read original article](<https://jsdev.space/di-container-javascript/>)

Author: anton liberant

Published: 2026-08-02T00:00:00Z

Content type: tutorial

Language: en

Sources: [JavaScript Development](<https://devfeed.tech/sources/javascript-development.md>)

Topics: [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>)

Tags: [dependency-injection](<https://devfeed.tech/tags/dependency-injection.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [vanilla-javascript](<https://devfeed.tech/tags/vanilla-javascript.md>)

### AI overview

A tutorial builds a lightweight dependency injection container in vanilla JavaScript, using declared component metadata instead of TypeScript, decorators, or runtime reflection. It covers class, factory, and value providers; singleton, scoped, and transient lifetimes; recursive dependency resolution; circular dependency detection; and an example application architecture that keeps domain objects independent from the container. The implementation is presented as an experiment rather than a production-ready framework.

### Source excerpt

Learn how to build a dependency injection container in vanilla JavaScript with singleton, scoped, and transient lifetimes, all without TypeScript.

## Building a Testable Network Layer and Three-Tier State Management in Flutter

DevFeed: [Building a Testable Network Layer and Three-Tier State Management in Flutter](<https://devfeed.tech/articles/building-a-testable-network-layer-and-three-tier-state-management-in-flutter-23048.md>)

Original publisher: [Read original article](<https://medium.com/flutter-community/building-a-testable-network-layer-and-three-tier-state-management-in-flutter-bebdd831cf25?source=rss----86fb29d7cc6a---4>)

Author: Veli Bacık

Published: 2026-07-08T15:56:52Z

Content type: tutorial

Language: en

Sources: [Flutter Community](<https://devfeed.tech/sources/flutter-community-medium.md>)

Topics: [Flutter](<https://devfeed.tech/topics/flutter.md>), [state-management](<https://devfeed.tech/topics/state-management.md>), [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Pull Request](<https://devfeed.tech/topics/pull-request.md>)

Tags: [dart](<https://devfeed.tech/tags/dart.md>), [flutter](<https://devfeed.tech/tags/flutter.md>), [layer](<https://devfeed.tech/tags/layer.md>), [masterclass](<https://devfeed.tech/tags/masterclass.md>), [network](<https://devfeed.tech/tags/network.md>), [refactoring](<https://devfeed.tech/tags/refactoring.md>), [state](<https://devfeed.tech/tags/state.md>), [state-management](<https://devfeed.tech/tags/state-management.md>)

### AI overview

The excerpt presents a Flutter architecture that centralizes HTTP behind an injectable network manager and service interfaces, then assigns state to three scopes. The manager configures base URL, timeouts, headers, and a typed error model once; generic requests return sealed success/error results handled with `fold`. Services accept an injected manager for tests, while production can use the singleton. Generated `INetworkModel` response models use `json_serializable` and `Equatable`. State is split among a global Cubit, page Cubits with immutable state, and widget-local `ValueNotifier`s. `BlocSelector` limits rebuilds to selected fields, and `BlocListener` handles navigation as a side effect. The excerpt notes that the three-tier approach is not tied to Bloc, though the example uses `flutter_bloc`; its service test points at localhost, so it demonstrates an integration test setup rather than an offline fake-network test.

### Source excerpt

How to wrap HTTP behind a generic, testable network manager with sealed results -- then drive your screens with a three-tier state model: global Cubit, page Cubit, and widget-local ValueNotifier. Flutter Refactoring Masterclass -- Part 3 GitHub - VB10/flight_booking: Flight App for refactoring real project PRs: #11, #12 📺 Video Series: Network & Service Layer https://medium.com/media/2d40d555e4d8968f1d15fb35e2e91553/hrefhttps://medium.com/media/3d8a8a32a77c98177ba10492a892aed6/href 🤖 Want to apply these changes to your project? See the AI prompt at the end. The Problem In Part 2 we split the login page into View, ViewModel, and Mixin -- but the ViewModel still new'd up a Dio() instance and hard-coded http://localhost:8080 inline. Every screen that talked to the backend did the same thing: create a fresh Dio, paste the base URL, decode JSON by hand, and copy-paste the same if (statusCode == 200) ... else ... catch (e) ladder. That pattern rots fast. A URL change means a project-wide search. A new header (auth token, API version) has to be added everywhere. Error handling drifts -- one screen returns 'Server hatası', another swallows the exception. And nothing is testable, because the network call is welded to the widget. As the video puts it: the person writing the code shouldn't be able to say "this only works with internet" -- the network is a dependency, and dependencies must be managed. There's a second rot: state. setState rebuilds the whole widget on every field change. A page with a loading flag, an error string, and a list re-renders all three even when only one changed. And there's no consistent home for "where does the loading state live" -- sometimes a ValueNotifier, sometimes a bool, sometimes buried in _PageState. This article fixes both on the same module. PR #11 builds a generic network + service + model layer. PR #12 layers a three-tier state model on top -- Cubit for business, BlocSelector for surgical rebuilds, ValueNotifier for widget-local UI. What We Change

## Let Koin Shape your Application Architecture

DevFeed: [Let Koin Shape your Application Architecture](<https://devfeed.tech/articles/let-koin-shape-your-application-architecture-22974.md>)

Original publisher: [Read original article](<https://blog.insert-koin.io/let-koin-shape-your-application-architecture-9cd60b1e02b0?source=rss----925561f2ecdf---4>)

Author: Gabriel Bronzatti Moro

Published: 2026-07-06T12:01:01Z

Content type: article

Language: en

Sources: [Koin developers](<https://devfeed.tech/sources/koin-developers-medium.md>)

Topics: [koin](<https://devfeed.tech/topics/koin.md>), [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [software-architecture](<https://devfeed.tech/topics/software-architecture.md>), [architecture-components](<https://devfeed.tech/topics/architecture-components.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [scalable-architecture](<https://devfeed.tech/topics/scalable-architecture.md>)

Tags: [application](<https://devfeed.tech/tags/application.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [best-practices](<https://devfeed.tech/tags/best-practices.md>), [clean-architecture](<https://devfeed.tech/tags/clean-architecture.md>), [data](<https://devfeed.tech/tags/data.md>), [define](<https://devfeed.tech/tags/define.md>), [domain](<https://devfeed.tech/tags/domain.md>), [dsl](<https://devfeed.tech/tags/dsl.md>), [koin](<https://devfeed.tech/tags/koin.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [ktor](<https://devfeed.tech/tags/ktor.md>), [manage](<https://devfeed.tech/tags/manage.md>), [pattern](<https://devfeed.tech/tags/pattern.md>), [presentation](<https://devfeed.tech/tags/presentation.md>), [protocol](<https://devfeed.tech/tags/protocol.md>), [repositories](<https://devfeed.tech/tags/repositories.md>), [software-architecture](<https://devfeed.tech/tags/software-architecture.md>), [use-cases](<https://devfeed.tech/tags/use-cases.md>)

### AI overview

The excerpt presents Koin as the mechanism for defining how application objects are created and managed. Use `@Single` or `single { ... }` for shared instances such as a Ktor `HttpClient`; use `factory` when each request should get a fresh object, illustrated by stateless use cases parameterized with the selected movie ID. Define ViewModels with `viewModel` and inject them with `koinViewModel()`: unlike ordinary factories, their retention follows screen and navigation lifecycle, so they may remain while a screen is on the back stack and survive configuration changes. The guidance is to choose a component's lifetime based on its architectural role; custom scopes are only referenced as a topic covered elsewhere.

### Source excerpt

Hey, friends! 👋 Today we're going to explore application architecture and how Koin can help us build scalable, maintainable applications by applying the principles of Clean Architecture and other software design best practices. Application architecture is a fundamental skill for every software engineer. A well-designed architecture makes applications easier to understand, test, extend, and maintain as they grow over time. A collection of LEGO towers in various stages of construction -- Unsplash by richard_heFoundation When we think about software architecture, we often picture layered diagrams -- data, domain, and presentation -- along with classes such as use cases, handlers, repositories, and helpers. But how do all these components work together? How do we establish a reliable communication protocol between them? Architecture is more than just organizing classes into packages. It's about defining how objects communicate and collaborate working toward a common goal. With that in mind, let's begin our journey with a simple principle: Every object instance should be created by Koin. My only responsibility as a developer is to describe how each object should be instantiated, while Koin takes care of the creation process.SingletonSingleton Café generated by ChatGPT Koin makes it easy to define singletons, whether you're using the @Single annotation or the single { ... } DSL. By declaring a singleton, you're telling Koin to create and manage a single instance of that object for the lifetime of the application. In the example below, we define an HttpClient as a singleton: @Module class NetworkModule { @Single fun provideHttpClient(): HttpClient { return HttpClientBuilder.build( baseUrl = BuildKonfig.HOST, ) } ... } HttpClient is a class provided by Ktor, and it should typically be instantiated only once. By declaring it as a singleton, Koin ensures that the same HttpClient instance is shared throughout the application. The Singleton pattern is commonly used for objects tha

## Metro DI for Ktor Backend: From a God Object through manual DI to Constructor Injection

DevFeed: [Metro DI for Ktor Backend: From a God Object through manual DI to Constructor Injection](<https://devfeed.tech/articles/metro-di-for-ktor-backend-from-a-god-object-through-manual-di-to-constructor-injection-22966.md>)

Original publisher: [Read original article](<https://funkymuse.github.io/posts/metro-di-ktor-server/>)

Author: FunkyMuse

Published: 2026-05-15T15:35:00Z

Content type: article

Language: en

Sources: [FunkyMuse](<https://devfeed.tech/sources/funkymuse.md>)

Topics: [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [Ktor](<https://devfeed.tech/topics/ktor.md>), [constructor](<https://devfeed.tech/topics/constructor.md>), [Dagger](<https://devfeed.tech/topics/dagger.md>), [dagger-hilt](<https://devfeed.tech/topics/dagger-hilt.md>), [koin](<https://devfeed.tech/topics/koin.md>), [IntelliJ IDEA](<https://devfeed.tech/topics/intellij-idea.md>)

Tags: [accessors](<https://devfeed.tech/tags/accessors.md>), [aggregation](<https://devfeed.tech/tags/aggregation.md>), [android](<https://devfeed.tech/tags/android.md>), [android-development](<https://devfeed.tech/tags/android-development.md>), [annotations](<https://devfeed.tech/tags/annotations.md>), [anvil](<https://devfeed.tech/tags/anvil.md>), [api](<https://devfeed.tech/tags/api.md>), [auth](<https://devfeed.tech/tags/auth.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [backend](<https://devfeed.tech/tags/backend.md>), [conf](<https://devfeed.tech/tags/conf.md>), [constructor](<https://devfeed.tech/tags/constructor.md>), [default-parameters](<https://devfeed.tech/tags/default-parameters.md>), [di](<https://devfeed.tech/tags/di.md>), [framework](<https://devfeed.tech/tags/framework.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [ktor](<https://devfeed.tech/tags/ktor.md>), [lazy](<https://devfeed.tech/tags/lazy.md>), [metro](<https://devfeed.tech/tags/metro.md>), [object](<https://devfeed.tech/tags/object.md>), [var](<https://devfeed.tech/tags/var.md>)

### AI overview

The author replaces a manually wired `BackendComponent`--whose default constructor parameters could silently pull real dependencies into tests--with Metro's compile-time constructor injection. A `BackendGraph` gathers `@ContributesTo` bindings and `@ContributesIntoSet` route and plugin registrars, so adding or removing them does not require editing a central registry; plugin installers retain an explicit order. Stateless injected classes get fresh instances, while `@SingleIn(AppScope::class)` is reserved for shared or costly objects. For integration tests, TestContainers provides PostgreSQL/PostGIS, Redis, and MinIO; tests start a real Ktor server and obtain its live Metro graph to inspect repository state. The author contrasts this with Metro's direct-construction-with-fakes approach for unit and component tests, which they do not use for this backend's integration coverage. They note that Metro's compile-time verification costs extra build time and say they miss Dagger's IDE dependency navigation. The supplied text describes a single Gradle backend module and a possible future split, not an implemented multi-module setup.

### Source excerpt

The Starting Point: a God Object When Rudio was a created a few months ago it used the simplest possible DI: one big object BackendComponent with everything wired manually via by lazy and lateinit var. No framework, no annotations, no ceremony, then i started adding things and manual DI became a tedious and tiring task because everywhere i used default parameters to achieve default constructor...

## Incremental Maintenance

DevFeed: [Incremental Maintenance](<https://devfeed.tech/articles/incremental-maintenance-30611.md>)

Original publisher: [Read original article](<https://ryanharter.com/blog/2026/05/incremental-maintenance/>)

Published: 2026-05-14T01:53:09Z

Content type: opinion

Language: en

Sources: [Blogs on Ryan Harter](<https://devfeed.tech/sources/blogs-on-ryan-harter.md>)

Topics: [maintenance](<https://devfeed.tech/topics/maintenance.md>), [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [implementation](<https://devfeed.tech/topics/implementation.md>), [screen](<https://devfeed.tech/topics/screen.md>), [App](<https://devfeed.tech/topics/app.md>)

Tags: [core](<https://devfeed.tech/tags/core.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [dependency-injection](<https://devfeed.tech/tags/dependency-injection.md>), [incremental](<https://devfeed.tech/tags/incremental.md>), [maintenance](<https://devfeed.tech/tags/maintenance.md>), [patterns](<https://devfeed.tech/tags/patterns.md>), [product](<https://devfeed.tech/tags/product.md>), [screen](<https://devfeed.tech/tags/screen.md>)

### AI overview

An opinion article about incremental maintenance in a large, aging application. It argues that small refactoring choices can reduce entrenched patterns, using dependency injection to keep feature-gating details out of a monolithic tab-host screen.

### Source excerpt

I recently reviewed some code at work that made me pause. The change affected a part of the codebase that we affectionately call "The Monolith", which is some of the oldest code in our 16 year old app. While there are reasonable arguments that it's hard to tease apart this older hairball of code, there are often small choices that can either move you closer to the decoupled promised land, or further entrench you in bad patterns.

## Metro 1.0.0 Is Stable as a Kotlin Multiplatform Compile-Time Dependency Injection Framework

DevFeed: [Metro 1.0.0 Is Stable as a Kotlin Multiplatform Compile-Time Dependency Injection Framework](<https://devfeed.tech/articles/metro-is-stable-39040.md>)

Original publisher: [Read original article](<https://www.zacsweers.dev/metro-is-stable/>)

Author: Zac Sweers

Published: 2026-04-27T21:07:22Z

Content type: release

Language: en

Sources: [Zac Sweers](<https://devfeed.tech/sources/zac-sweers.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [multiplatform](<https://devfeed.tech/topics/multiplatform.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [Framework](<https://devfeed.tech/topics/framework.md>), [gradle-plugin](<https://devfeed.tech/topics/gradle-plugin.md>)

Tags: [build-performance](<https://devfeed.tech/tags/build-performance.md>), [build-times](<https://devfeed.tech/tags/build-times.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [dependency-injection](<https://devfeed.tech/tags/dependency-injection.md>), [experimental](<https://devfeed.tech/tags/experimental.md>), [gradle](<https://devfeed.tech/tags/gradle.md>), [gradle-plugin](<https://devfeed.tech/tags/gradle-plugin.md>), [incremental](<https://devfeed.tech/tags/incremental.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [metro](<https://devfeed.tech/tags/metro.md>), [multiplatform](<https://devfeed.tech/tags/multiplatform.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [perfetto](<https://devfeed.tech/tags/perfetto.md>), [stable](<https://devfeed.tech/tags/stable.md>)

### AI overview

Metro 1.0.0 is now stable. The Kotlin multiplatform compile-time dependency injection framework uses a compiler plugin and provides API-stable runtime APIs, MetroX artifacts, and a Gradle plugin unless marked experimental. The article also describes build-performance improvements and compile-time validation features.

### Source excerpt

New here? Metro is a multiplatform, compile-time dependency injection framework for Kotlin implemented as a compiler plugin. Metro 1.0.0 is out now and stable. This means that its runtime APIs (runtime, MetroX artifacts, Gradle plugin, etc.) are now API-stable unless annotated with an experimental annotation. This

[Next page](<https://devfeed.tech/topics/dependency-injection.md?cursor=WyIyMDI2LTA0LTI3VDIxOjA3OjIyKzAwOjAwIiwgIjQ3ODlhMDExLTNlYTAtNDY3OC1hNjdmLTc4YmIxZGU2NTBjZCJd>)