Devlico.Us
CodeBetter.Com

Browse by Tags

  • Testing your IoC Bindings

    One thing I like to do when I am using a IoC (Inversion of Control) container is to create simple test that ensure that my objects have been wired up correctly and can be created via the IoC container. I know this may seem like overkill, but I feel that by having my IoC bindings covered by tests I am...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 09-10-2008
  • ASP.Net MVC ViewData best practice open question

    This is post is more about me asking the question then giving direction on best practice. The question is simple. When dealing with viewdata with the MVC framework, what type of usage of viewdata is preferred? Approach 1 If you watch Scott's screencasts it appears the he favors the use of a property...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 03-06-2008
  • Link building 101 with ASP.Net MVC

    Because I was stumped on the various ways to build links (hyperlinks)with the new MVC framework, I thought I would save others the pain that I went through and show the various ways to build links. You can also get this information by watching Scott Hanselman's screencasts on the frameworks as well...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 03-06-2008
  • Being OCD and Merging don't mix

    Let me start of by publicly admitting this, I am have OCD (Obsessive-compulsive disorder) when it comes to code. My code must be clean and it must be uniform. And because I am a ReSharper lover my disorder is even more drawn out. Over the past month or so while I have been fixing bugs in our application...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 02-21-2008
  • The VS Team Branch Merge Dance Explained

    Just wanted to dump a quick how-to on doing branch to trunk merges in VS Team. It is pretty simple really, only a few steps. Pull the latest of the branch to your local disk Pull the latest of the trunk to your local disk Merge and Pray (more on this at a later date) Yea sounds pretty easy right.......
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 02-14-2008
  • Dead Code: Code Smell #1

    In my humble opinion the worst code smell you can have is Dead Code.  I know that other smells such as large methods, large classes, overly complex logic, interwoven dependencies, etc are all smells, but nothing, I MEAN NOTHING smells worse than dead code.  Let me explain. **** BTW, I am not...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 02-14-2008
  • Compiler warnings, the trash you forgot to take out

    There was once a time where I did not care about compiler warnings, but times have changed.  In fact, I remember having a debate with a fellow developer some time ago about why compiler warnings were not that bad..... Oh how times have changed. In my opinion (my changed opinion) compiler warnings...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 02-05-2008
  • [OT] Where Do Automatic Properties go in your class file?

    Ok, so I know this is a odd question but I am stumped. Normally when I have a private instance level variable that is exposed via a property I format my class file as such. { ..... all instance variables ..... any constructors ..... any public/private/protected methods ..... any properties } Now that...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 02-02-2008
  • Whitebox vs Blackbox testing (location of unit tests)

    Over on the Alt.Net mailing list ( here ) the topic of where to put your unit tests was the hot topic a few days ago. This is a topic that I have debated with various people over the past few years. With all the debates I have had, it is clear to me that there really is no right or wrong way do to this...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 01-28-2008
  • Defensive Coding best practice

    <disclaimer> This posting is purely my personal opinion. I am sure many of you out there will disagree, if this is the case, let me know. </disclaimer> Today, during my bug hunting I stumbled across the dreaded 'Null reference' exception. This was not the original target of my hunt...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 01-22-2008
Page 1 of 3 (22 items) 1 2 3 Next >

Our Sponsors

Red-Gate!