Tag: Unit Testing / Test-Driven Development (TDD)

  • My slides and sample code from DevTeach Ottawa 2011

    I just wrapped up my sessions at DevTeach Ottawa 2011.  I gave the following two talks and, as promised, here are my slides and sample code. Too Slow: Use VS2010 Profiling & Load Testing to Manage Performance Issues You thought you knew how to write fast code but your app just doesn’t perform. Massive servers…

  • VSLive Redmond 2011 Slides and Sample Code for my Unit Testing & TFS2010 Build Sessions

    I spoke at VSLive in Redmond, Washington last week and gave two talks: 1) “Team Foundation Server 2010 Builds: Understand, Configure, and Customize” and 2) “Design For Testability: Mocks, Stubs, Refactoring, and User Interfaces.” Here are the abstracts: Design for Testability: Mocks, Stubs, Refactoring, and User Interfaces You’re sold on unit testing. You’re even doing…

  • Speaking at DevTeach Ottawa: November 2 through November 4, 2011

    Some more news.  I’ll be speaking at DevTeach in Ottawa, ON.  The schedule isn’t 100% set in stone yet but the conference runs from 11/2/2011 through 11/4/2011 and I’ll be giving two talks. Here are the abstracts: Too Slow: Use VS2010 Profiling & Load Testing to Manage Performance Issues You thought you knew how to…

  • Speaking at VSLive Redmond on October 20, 2011

    Updated 10/24/2011: the slides and code samples for these talks are available here. FYI, I’ll be speaking at VSLive in Redmond, Washington on October 20th, 2011.  While I’m there, I’ll be giving two talks: 1) “Team Foundation Server 2010 Builds: Understand, Configure, and Customize” and 2) “Design For Testability: Mocks, Stubs, Refactoring, and User Interfaces.”…

  • VSLive Vegas: Top 7 Lessons From My First Big Silverlight Project

    I’m catching up on my blogging today and I’m posting stuff that should have gone up a while ago.  A few months back, I did a Silverlight best practices session at VSLive Las Vegas. Top 7 Lessons Learned On My First Big Silverlight Project Silverlight is tricky. You’d think it’d be just like writing any…

  • 6 Model-View-ViewModel (MVVM) Tips for Unit Testing Silverlight, WP7, and WPF

    My article for Visual Studio Magazine just went live.  “6 Model-View-ViewModel (MVVM) Tips: Leverage ViewModel and Unit Test Silverlight and WP7 Apps” Here are the tips: 1. Separate the Model from the ViewModel, no matter what 2. The classes from “Add Service Reference” are not your Models or your ViewModels 3. Separate your ViewModel and…

  • Top 4 Reasons Why a Shared Development Database is Evil.

    It’s pretty common.  A development team will frequently have one instance of SQL Server — filled with data from production — that all the devs use to develop and test the next version of the application.  It’s one of those things in software development that feels like “common sense”.  Of *course* you’re going to have…

  • How do I think about unit testing Silverlight? What’s my process? (Part 1)

    My job as a software consultant can be a little vague.  Sometimes I’m coaching a team.  Sometimes I’m training a company on how to use Team Foundation Server (TFS).  Sometimes I’m an architect or developer.  The thread that seems to go through all of these different types of work is that I’m almost always evangelizing…

  • Silverlight Asynchronous WCF Calls Without Ruining Your Architecture

    A while back I wrote a blog post about how Silverlight 4’s asynchronous network calls make a layered client-side architecture difficult.  In that post I talk about wanting to have a loosely coupled, testable, n-tier architecture on my Silverlight client application.  Basically, I wanted to have a client-side architecture that was nicely layered like Figure…

  • An easier way to unit test INotifyPropertyChanged in Silverlight/WPF

    If you’re coding your Silverlight or WPF app and you’re using the ViewModel Pattern, you’ve probably heard of the INotifyPropertyChanged interface.  INotifyPropertyChange is the glue that allows changes to values in your ViewModel classes to bubble up to your data-bound xaml user interfaces.  When a change happens in a ViewModel property, the property raises INotifyPropertyChanged’s…