|
|
|
|
|
by catlifeonmars
1572 days ago
|
|
I mostly agree. I think there are two cases where using a DI framework make sense: 1. Complex lifecycle management, maybe. For example say you need to restart a set of go routines after loading a new configuration, without killing the process. I’m on the fence about this one. 2. When there is a combinatorially large number of components that need to be combined arbitrarily at runtime. The only examples I’ve seen for this in the wild are games and simulations using an ECS (entity-component-system) and queries to discover components that fit a certain criteria. |
|