Follow

I've realized that I don't use any dependency injection in , and I don't miss it.

Cargo makes dependencies and workspaces so easy, that I break code up into small libraries instead. They are testable individually, and bigger things that would be unit tests with DI become more of integration tests instead.

· · Web · 0 · 1 · 11
Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!