The engineering notebook
RSS feed#dependency-injection
Articles, practical guides, and engineering notes on dependency-injection.
By Ashish Bhakhand 108 published articles
Explore the articles
8 articles
Reset filtersTesting TCA Features with Controlled Dependencies and Time
Drive reducer actions directly while clocks, streams, identifiers, and clients produce deterministic effects.
Testing FastAPI Without Starting the Real Application
Build focused test applications, override dependencies, and test services at their natural boundaries without production infrastructure.
Why My Lambda Handlers Only Wire Dependencies
Keep handlers focused on transport concerns and dependency wiring so application behavior stays reusable and easy to test.
Deterministic Tests by Injecting Time and IDs
Replace hidden calls to the clock and random UUID generator with tiny dependencies that make Jest tests exact and repeatable.
When Manual Dependency Injection Stopped Scaling in My Flutter Apps
How get_it and injectable help organize services, repositories, use cases, and BLoCs without hiding ownership or lifecycle decisions.
Hilt Versus Koin: Why Compile-Time Dependency Validation Matters
Choose dependency injection by failure mode, graph visibility, startup cost, and the team's need for Android integration.
Thin FastAPI Routers: What Belongs in an Endpoint?
Use routes as typed HTTP adapters while services own decisions, transactions, and orchestration.
One Client Boundary per Feature in TCA
Give reducers a small capability-based dependency while network, persistence, and caching remain implementation details.