Archive for category .Net

Your Test Suite Sucks… do it again

A pretty smart dude I worked with once told this story of a team he was on.  They spent a few days, maybe even a week, deploying their app.  It was painful, obviously.  They’re response: “That sucked.  Let’s do it again tomorrow.” Most people try to avoid hard things or at least delay them until [...]

Determine Framework Version & Profile in a #NuGet Install.ps1

[Updated: @davidfowl suggested using the FrameworkName rather than parsing myself.  Thanks!] I’m working on the Caliburn.Micro Nuget package and one of the things that we need is to add a default Bootstrapper, ShellView, and ShellViewModel to your project.  One awesome thing Rob Eisenberg has done is provide WPF, Silverlight and WP7 versions of Caliburn.Micro.  Unfortunately, [...]

Cincinnati Professional Scrum Developer .Net Course (Feb 21st)

[Correction: This is the first for the new year.  This certainly is not the first ever.] I’m happy to announce that our first Professional Scrum Developer course of 2011 is scheduled for February 21st.  This is a course which practices 5 days of craftsmanship, collaboration, and sustainable pace via the Scrum framework.  Practice is the [...]

Greatest Overeager Design Decision: Assignment

In a getting back to basics moment of mine, I started through the TDD Problems.  I found myself on the Console Interaction problem and decided to take a step back from after refactoring.  This is what I saw: var shape = _console.AskForShape(); var rectange = GetRectange(); _console.PrintArea(rectange.ComputeArea()); _console.PrintCircumference(rectange.ComputeCircumference()); ReSharper was hinting at it, but it [...]

Where did Alt.Net go?

These last few weeks have seen a flurry of emotions from the .Net community.  It appears that a few product releases and a presumptive priority change for IronRuby have caused the world to come crashing down and passengers of the .Net ship to jump overboard.  I’m glad I don’t work for these emotionally unstable individuals, [...]

ReSharper Test Runner and MSTest Projects

One of my biggest irritants with the Unit Testing ecosystem is that each runner does things a little different. Gallio has helped solve this to some extent, but even that hasn’t solved all the problems that come with content or resource file deployments, coverage settings, etc.  Gallio’s goal is noble if not arrogant, become the [...]

Strategy Pattern with Castle Windsor

One of the tangent patterns associated with isolation or Single Responsibility is the Strategy Pattern.  I use Castle Windsor as my IoC of choice and I had hoped there was some black magic built in to make the Strategy Pattern dead simple.  Turns out there is and there isn’t. What is the Strategy Pattern The [...]

Property Undo/Redo Support

Undo/Redo support is one of those golden features that really differentiate a client app from many web apps.  There have been a number of methods/techniques to provide this support that I’ve run across from brute force, to the memento pattern, but none that lit any fire for me. Here’s my answer to the problem using [...]

Why Plain Old LINQ is so powerful

Ian Griffiths posted a great example of how powerful and cool LINQ is when used in everyday code (it’s not all about databases people). If you haven’t started to learn how to incorporate this awesome toolset into your daily coding life, you’re killing yourself.  No excuses.

Roadblock to Mocking Unit Tests

I’ve been a faithful unit tester for a few years now.  I may not do everything by the book (I think end-to-end unit tests are helpful), but I do get good coverage most of the time.  That said, I’ve found myself unable to use any of the Mock frameworks out there, because I don’t use [...]

Switch to our mobile site