While helping mentor a teammate on some unit testing practices, I came across a wrinkle about how the code coverage metric can be misleading when your program flow is structured in a particular way. Caveat: The code and unit tests…
All posts filed under “Software”
Notes on .NET Rocks! 1308 on “DevOps Is Dead”
This post is a placeholder for some notes I jotted down about a recent .NET Rocks! podcast (episode 1308) where the hosts, Richard Campbell and Carl Franklin spoke with guest Wes Higbee about software practices. Notes DevOps is dead on arrival, because we’re just seeing…
Getting Code Review Statistics Programmatically from TFS
This post describes how to use LINQPad to query a Team Foundation Server (TFS) instance so that code review statistics can be collected. Context The project I work on for my employer has an external release cycle of six months….
Advice Needed about LSP Violation Avoidance
At work I’ve run into one of those situations where I have several object design paths to choose from, yet none of them is standing out as a clear winner. This post aims to set up a small version the…
Domain-driven Design Concepts Reference
For my primary software project at work, the solution is structured based on concepts that are part of domain-driven design (DDD). It seems like each time I revisit the concepts, they jell a little more. Given that (1) my company will…
Switching to NSubstitute
This post briefly describes the rationale behind changing my preferred isolation/mocking framework from Rhino Mocks to NSubstitute. I’m also including a kind of quick reference section for describing common testing scenarios involving NSubstitute. Why use an isolation framework? Here are two…
Video Splitter Project – Part 1
A few months ago, I was contacted by a professor, Dr. Jeff Larsen from the psychology department at The University of Tennessee, about a simple automation project he had in mind. In this series of posts (and as the project progresses),…
Undoing Work in Mercurial
Some context The genesis of this post was a training session I had with a coworker who was new to distributed version control. Two things to keep in mind: Up until fairly recently, our dev shop was using TFS. We’re…
WPF Resource Dictionaries in Dynamically Loaded Modules
Context During the down time between software releases at work, we decided it was time to upgrade to Visual Studio 2013 (from 2012). I was hoping that using the newer version would solve a XAML designer issue we encountered on occasion with…