Devlico.Us
CodeBetter.Com

Browse by Tags

  • Unused code is the worst of the 7 Wastes of Software

    Today I was having another round of conversations with a buddy of mine about the concept of waste and unused code. In agile there is a concept called YAGNI (You Ain't Gonna Need It) that basically states that you should not add code that is not immediately needed as it is waste. In Lean software...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 08-06-2008
  • Simple extension methods to help with Asserting values

    In the past I have written about the Fail Fast principle.  This is a principle I try to live my development life by.  I would rather explicitly check for possible failure points then have a runtime error crop up.  In the past when writing these failure check we have had to resort to a...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 04-10-2008
  • Sorting List's the .Net 3.5 Way

    This post is another in the recent string of How-to's. But it is just so hard to resist. .Net 3.5 has so many cool features, it is just fun to explore them all. Ok, so here is the issue we are going to solve today. We have a list of entities and we need to sort them. In this post I will show you...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 03-28-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
  • This code sucks....

    How many times as developers have we taken a look at someone else's code and said 'This stuff sucks' or 'WTF where they thinking'? I know I have said this plenty of time. I also am pretty sure that others have said this about my code. In fact I am KNOW I have said that about my own...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 12-10-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
  • Subclassing for Success

    As someone how has been designing and developing WinForms based applications for the past 7+ years, I have learned that subclassing UI controls is a must. You may be thinking, why would I want to subclass a text box? Or a combo box? The answer is simple, the better future proof your app. How many times...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 11-02-2007
  • Backing in Unit Tests into an existing project

    Recently I was asked about backing in unit tests into an existing project. In particular I was asked A) was possible and B) is it worth it. In short my answers to both these are Yes and Yes. However, backing in unit tests is not without its challenges. I thought today I would go express my experiences...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 10-09-2007
Page 1 of 2 (14 items) 1 2 Next >

Our Sponsors

Red-Gate!

Proudly Partnered With