Design Patterns

I love Microsoft’s Entity Framework and the MVC framework. Put together, they make my work as a C# developer a lot easier because they take care of a lot of the heavy lifting. As a bonus, they help make my applications more structured, more easily testable and more fun to work on. But it took me a while to get where I wanted to be. As with all technologies, it takes a while to get comfortable with them and learn how to apply them in a good way. This is in part because most tutorials focus on the…

Recently, I've been trying out the Ninject Dependency Injection framework. It's amazing! In this post I would like to give you some pointers on how to use it. I will also briefly explain the purpose of Dependency Injection. For those aching to play with some code rather than reading a lengthy blog (for webforms or as a console application), check the sourcecode repositories below. What is dependency injection? Dependency Injection (DI, wikipedia) is a design pattern that reduces hard-coded dependencies between your classes by injecting these dependencies at run-time, instead of during design-time. Technically, Dependency Injection is a mechanism that…