Category Archives: Development

Stop abusing spring….please :)

I highly recommend studying the Guice framework tutorials before you try to jump into spring (you may even decide to just use Guice instead).

To summarize using an excellent analogy from the people behind Guice, dependency injection is like the “Hollywood principle,” which is “don’t call us, we’ll call you.”  Think of it as a way to decouple your code such that testing small portions becomes trivial.  Certainly other ways to achieve the same means, but dependency injection can end up doing a lot of the work for you by using a simple annotation (in spring think  @autowired, in Guice think @Inject ).