Parsing a nullable primitive to a primitive with generics and the Try-Parse pattern

There is a lot to unpack in that title. Let’s start with the Try-Parse pattern. This pattern is defined in Microsoft’s “Exceptions and Performance” article (which itself comes from Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries, 2nd Edition) and is likely one you are very familiar with. Fundamentally the return type […]

.

Read more

Starting over

Starting over by loading the archive of all my old posts.

.

Read more

Live Filter Design Pattern in XAML

I decided I should start titling my posts with XAML instead of WPF as they are applicable regardless of whether you are developing in Windows 7 with WPF or Windows 8. I’m going to take the BreadCrumb design pattern sample and extend it to include the Live Filter design pattern. The premise behind the Live […]

.

Read more

Binding a Dependency Property of a View to its ViewModel, part Deux

I’ve been getting quite a few hits lately on my post, Binding a Dependency Property of a View to its ViewModel. After reviewing it I realized that, while the post isn’t too bad, it doesn’t read as smooth as I would like (though it does have some pretty pictures with arrows and boxes and stuff, […]

.

Read more

BreadCrumb Design Pattern in WPF

This continues my series on ways you’ve probably used design patterns in real-life and may not have even known it. I’m going to go even further outside of the standard software design patterns into UI design patterns. Specifically, I wanted to address the bread crumb, a UI design pattern that concerns navigation. In web development […]

.

Read more

Bind a ComboBox to an enum while using Display attribute

I found a lot of different tutorials on binding a ComboBox to an enum but none of them worked. In every case the ComboBox would not stay selected to the value I chose, instead always reverting back to the previous selected value. Couple that with the fact that I wanted to use the Display attribute […]

.

Read more

Monitor Design Pattern with Semaphore

This continues my series on ways you’ve probably used design patterns in real-life and may not have even known it. The previous post was on the Locking, Double-Checked Locking, Lazy and Proxy Design Patterns. In the last post we began to look at design patterns outside of the standard creational, structural and behavioral, venturing into […]

.

Read more

Locking, Double-Checked Locking, Lazy and Proxy Design Patterns

This continues my series on ways you’ve probably used design patterns in real-life and may not have even known it. The previous post was on the Iterator Design Pattern. The original book on software design patterns, Design Patterns: Elements of Reusable Object-Oriented Software discussed three types of design patterns, creational, structural and behavioral. As time […]

.

Read more

Is Agile that good or that bad?

Update 2024-02-18: Unlike the rest of the articles I reloaded from the archive, I didn’t check the links in this one. There is quite a bit here that is dated (like it’s super easy to set up CI with Azure nowadays, instead of what was mentioned) but the core premise of the post still stands. […]

.

Read more

Iterator Design Pattern – A Real World Example

This continues my series on ways you’ve probably used design patterns in real-life and may not have even known it. The previous post was on the Adapter Design Pattern.This is a kind of “catch-all” post where I want to talk not only about the Iterator Design Pattern but also custom enumerators for Parallel.ForEach and ensuring […]

.

Read more
FormatException

928 East Plymouth Drive Asbury Park, NJ 07712