Saturday, July 15 2017 smart-code
The Singleton design pattern is one of the most well known from the famous book by the Gang of Four, but it’s well overused and often poorly implemented. Let’s discuss why that is and how the singleton pattern can be properly implemented (hint: it’s easier than you think). In a follow-up post, we’ll discuss why you almost never want to do this.
Saturday, July 08 2017 visual-studio
I’m converting my Niche CommandLine library across to use Fluent Assertions. This means updating well over a hundred unit tests to use the new style. Fortunately, Resharper makes this a non-tedious task.
Saturday, July 01 2017 testing
Can we just ignore the fact that the Getting Started post is my third in the series on FsCheck? This is what happens when I just start blogging about interesting things without planning out the series of posts in advance.
Saturday, June 24 2017 testing
In last week’s Property Testing with FsCheck, we saw how to write a couple of simple tests to check that an implementation of
.Equals() was correct. We didn’t see what happens when the test fails, nor what we can do to make that failure easier to understand.
Sunday, June 18 2017 testing
I’ve been writing some property tests with FsCheck and to say that the process has been bittersweet is a bit of an understatement. The good news is that writing property tests has successfully uncovered bugs. The bad news is that writing property tests has successfully uncovered bugs.
|High CPU Usage by Windows Update on Windows RT||04 Jun 2017|
|Finding source code in .NET Core||10 May 2017|
|In defense of XML||25 Apr 2017|
|Static Analysis tools for the Win||15 Apr 2017|
|What's the value of a failing unit test?||08 Apr 2017|
|What's the value of a passing unit test?||02 Apr 2017|
|You keep using that word: Mandatory||19 Mar 2017|
|Why Immutable Types?||11 Mar 2017|
|Immutable Type Miscellany||05 Mar 2017|
|Testing Immutable Types||25 Feb 2017|
|Restored Posts||19 Feb 2017|
|Factory Methods||18 Feb 2017|
|Sharpen The Saw #10||13 Feb 2017|
|Queue Concatenation||11 Feb 2017|
|Complex Immutable Queues||04 Feb 2017|
|The Problem with the Simple Immutable Queue||28 Jan 2017|
|Enumeration of Immutable Queues||21 Jan 2017|
|Reversing Immutable Stacks||14 Jan 2017|
|Simple Immutable Queues||07 Jan 2017|
|Immutable Queues||30 Dec 2016|
|Immutable Stacks Miscellany||22 Dec 2016|
|Immutable Stack Equality||09 Dec 2016|
|Enumerating Immutable Stacks||03 Dec 2016|
|Immutable Stack Diagrams||26 Nov 2016|
|Immutable Stacks||19 Nov 2016|
|Method Archetypes||15 Nov 2016|
|The Nature of Experience||22 Oct 2016|
|What is it with Booleans?||08 Oct 2016|
|Track your Test Coverage with OpenCover||19 Sep 2016|
|Are Boolean Return values Evil?||11 Sep 2016|