All posts by:
  • Web.config Transformations Aren’t as Tricky as You Think – Here’s Some Tips To Pull Them Off
    Written by Joel Reynolds on November 14, 2011 with No comments

     Web.config transformations are an easy and elegant way to change what values will be in your web.config file depending on what ‘mode’ you publish in, all while leaving your development web.config file the same. A good example for where we heavily use web.config transformations is within our MusicMatters application. Due to the nature of MusicMatters, we have it set up for 3 different environments: Development, Testing, and Release. Continue reading →

  • Dependency Injection
    Written by Joel Reynolds on June 20, 2011 with No comments

    There’s a beauty about dependency injection (also known as Inversion Of Control) that many people don’t understand or appreciate. The idea behind it is that your code should do 1 of 2 things: Your code/class should DO something. Your code/class should CREATE something (factory pattern and/or IoC container). If your class does both, you’re doing it wrong. The ‘beauty’ behind such an idea is that when your class doesn’t actually create anything, it doesn’t necessarily care how that object does something, it just KNOWS that it does SOMETHING based on the interface definition. Continue reading →