Explicitly setting all the bindings needed to compose your application — that’s a lot of work! See how to use convention over configuration to save time and make your composition easier to understand.
DI containers all serve a similar purpose, but with some differences in syntax and functionality. Ondrej Balas explains the differences between Ninject, Castle Windsor, Unity, StructureMap and Autofac.
Ondrej Balas continues his series on refactoring code for dependency injection, looking at patterns and strategies for changing application behavior after it has already been compiled.
Ondrej Balas continues his series on refactoring code for dependency injection, focusing on techniques that make it easier to refactor complex applications.
Ondrej Balas continues his discussion on refactoring your code for dependency injection, this time focusing on the composition root pattern.
Take control of your application’s behavior and move toward dependency injection by refactoring your existing code.
Community involvement is an often overlooked — but increasingly important — part of what it means to be a developer.
You can do a lot more with regular expressions than you think. In this tutorial, you’ll use it to convert a movie list into a CSV file for use in Excel.
I am a big fan of using Lazy<T> as my go-to implementation of the Singleton pattern. It works well and the thread safety is easily adjustable . While I won’t go into the details of how to use it, all the information is in the Lazy<T> documentation. For what I needed, however, Lazy<T> fell a bit short. I essentially needed a cache of something that was expensive to create, and could be invalidated when the source object changed. In my case, I had a list that I needed to run some aggregate queries against. Running those queries is expensive, so…
Like riding a bike, knowledge of regular expressions will stay with you forever, allowing you to manipulate text quickly and easily. In this part of the series, Ondrej focuses in on groups, positioning and tools.