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
  • [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
  • Overuse of #Regions

    Before I get started, I personally am a fan of using #regions in my code.  I think it cleans up everything, allowing me to only see what I want to see.  I also know that many of you disagree with me, and that is fine. Here are 2 posts that voice their disapproval for regions if you are interested...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 01-15-2008
  • Why using the index for data retrieval is evil

    Today I was refactoring some sql procs along with the corresponding .net code that called the procs. My primary focus was to implement some new business rules (ways to get totals) in the proc.  In doing so, I completely re-wrote the proc.  In the end the return values (column names) were the...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 12-28-2007
  • Source Control, works for code, why not use it for SQL Scripts

    Pretty much any developer with half a brain (or any real world experience) knows that you MUST keep your source code in some sort of source code repository. There are many of them out there, VSS, Vault, TFS, CVS, SVN, the list goes on. If putting your code (C#, C++, VB, etc) into a source control system...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 11-21-2007
  • Standard questions to be asked when logging bugs

    In my last post ( here ) I spoke about different do’s and don’ts when it comes to logging bugs. What I really did not hit on was the different types of questions I feel should be asked when logging bugs. Here are my questions, in no particular order. Platform Application Version # Environment Title Short...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 08-21-2007
  • Switch Statements with Enums best practice

    Over the years I have come to the conclusion when working with switch statements that switches on enum values, a DEFAULT block MUST be required. Not only should it be required, I think it should throw a developer exception. *** NOTE *** My stance on this is ONLY in scenarios where the switch statement...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 06-26-2007
Page 1 of 1 (7 items)

Our Sponsors

Proudly Partnered With