Tagged In dependency injection :
My Ten-Character Win
Last year, Wealthfront changed the way we do business in a huge way. In order to better serve our clients by taking on more brokerage responsibilities ourselves, we transitioned from being a fully-disclosed brokerage to an omnibus brokerage. In addition to paving the way for new functionality such as our Portfolio Line of Credit, our… Read more
Guice tricks for better testability, part one
I thought I’d enumerate some of the small Guice tricks we use for making our code more testable. Today: Logical Clocks. You never want to use System.currentTimeMillis() in your code. Rather, you want a logical clock that you can replace in your tests in order to control the flow of time. In Guice, not only… Read more
Just-in-time Providers for Guice
Guice is widely recognised as the best dependency injection framework for the JVM world and specifically for Java. It has brought together ideas from numerous projects, including Spring and PicoContainer, and popularised type driven development. Dependency injection is one of the principal enablers for test driven development, and as such central to our software practices… Read more