Softwire Blog


NCrunch: Unit testing, the right way?


4 September 2012, by

NCrunch is an automated parallel continuous testing tool for Visual Studio .NET. It intelligently takes responsibility for running automated tests so that you don’t have to, and it gives you a huge amount of useful information about your tests (such as code coverage) inline in your IDE while you work. Basically, it runs your unit tests for you, simplifying your workflow.

(more…)

Memoization explained part 4: multiple parameters


13 April 2012, by

Last time we saw the implementation of simple memoizers and I promised that this time, we’d take a look into the more advanced overloads – the ones with more than one parameter type.

(more…)

Memoization explained part 3: implementation


4 April 2012, by

previous article in series

Last time we looked at the memoization interface through some unit tests. Today, it’s time to start implementing the basic memoizer.

(more…)

Memoization explained part 2: the interface


20 March 2012, by

previous article in series

For those of you who have been on tenterhooks since my last post on memoization, I apologise for the delay. The rest of the posts shall now follow much more quickly!

Last time we explored the potential interface for such a library. But perhaps the best way to demonstrate precisely what my Memoizer will do, is to show you what a unit test would look like. So let’s indulge in a little Test-Driven Development

(more…)

Memoization explained – part 1


2 September 2011, by

Memoization is a way to optimize your code by having complicated functions cache their return values and reuse them for subsequent calls using the same inputs.

I’ve built a small Memoization library and will explore its usage in a series of articles. These will cover:

  • The interface design
  • Unit Tests
  • Simple memoizers
  • Advanced memoizers
  • Tradeoffs of memoizing.

(more…)