For years now I have wanted to write a DI framework for Rust like I wrote for C++:
http://adam.younglogic.com/2008/07/dependency-injection-in-c/
However, I have not been able to wrap my head around how to do that. The problem is that the DI framework, which both creates and shares the instances, will come in to conflict with the borrow checker.
Category Archives: IofC
Dependency Injection in Java
You might be thinking that this is a long solved problem. I think I have something a little bit different.
This is very similar to the C++ based one that I wrote long ago.
Continue readingDependency Injection in Python applied to Ossipee
I reworked my OpenStack API based cluster builder Ossipee last weekend. It makes heavy use of dependency resolution now, and breaks apart the super-base class into properly scoped components.
Continue reading
Parameter Names in Java 8
There is a killer feature in Java 8, and it is not Lambdas.
Array of Parameter Names in Java
My last post suggested an extension to the Java language that I think will be quite helpful. Until such a feature exists, we can fake it by using annotations.
Continue reading
Parameter Names in Java
There is a very small feature that could be added to Java in order to improve it significantly: Add names to the Parameter object in the Reflection API.
Continue reading
Dependency Injection in Python
Object oriented design principals are not language specific. While there is variation from language to language on details of implementations, and some techniques are not appropariate to all languages, for the most part, good design is good design.
Continue reading
Issue with Declarative Object Definition
The FreeIPA UI approach attempts to use a Domain Specific languages for UI definition. While I like how it has emerged thus far, I don’t feel we are yet where we need it to be.