Hacker News new | ask | show | jobs
by amenghra 3280 days ago
This example isn't great (PI is too trivial), but it seems to touch on the concept of dependency injection.

I would much rather work with a codebase that uses DI than one that doesn't.

In practice, it seems languages like Java have libraries such as Guice and Dagger but in Go you end up manually wiring things up.