>
> But we should probably create another thread to talk about it to keep this
> one focused on the singletons discussion.
>
+1


How far can we go down the path of cleaning up Singletons without having a
> DI framework in the mix?


We can do DI without a framework, by just passing the dependencies that a
function needs. Hopefully, this means that coders working on Geode can
think carefully about the requirements for a class or method call and by
thinking about requirements we get a better idea of our architecture and
what sections of the code can be separated.

If it gets too complicated (we start seeing a lot of places where some
inner call in the call graph requires something from further outside), we
can use a framework. I'd rather iterate in a way that's more lightweight
until we start needing something heavier.

Reply via email to