Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.
.net android asp.net asp.net mvc azure backup bigdata book c# community continuous delivery database denali functions gotcha how to howto indexing java linq mongodb nancy nhibernate nosql performance powershell security silverlight sql sql advent 2012 sql friday sql server sql server 2000 sql server 2005 sql server 2008 sql server 2008 r2 sql server 2012 sql server denali sqlcop ssis ssms ssrs structuremap t-sql tip training unit testing vb.net visual studio 2010 windows 7
- SQLDenis (576)
- Christiaan Baes (chrissie1) (527)
- Ted Krueger (onpnt) (332)
- Jes Schultz Borland (grrlgeek) (139)
- Eli Weinstock-Herman (tarwn) (116)
- Alex Ullrich (51)
- George Mastros (gmmastros) (46)
- Naomi Nosonovsky (27)
- Axel Achten (axel8s) (23)
- David Forck (thirster42) (22)
- Koen Verbeeck (20)
- Kevin Conan (18)
- chopstik (18)
- Rob Earl (14)
- thatrickguy (12)
I suspect that if you are reading this blog then you are using an IoC container to resolve your dependencies. If you do not and you just read this blog because you think I'm an awesome guy then that is fine too, but you should now take the time to learn how to use IoC/DI.
After the writing of your first application and the first tests. It is time to make our application a bit more testable by using dependency injection. I choose to use RoboGuice for this, which is a subproject of Guice made especially for the Android sub-culture.
There is a great webcast on dnrTV this week. It shows you everything you need to know about Dependency Injection and Inversion of Control. If these things are a mystery to you, then watch this webcast. It takes 1 hour and 2 minutes. But it is really worth it. And perhaps it will also teach you how TDD works and what benefits that has.
This is the short description.
James Kovacs shows very clearly how to code up a simple IoC container with just a few ...