Archives for March 2007
Innovation in Practice?
Bob Walsh has pointed to a cool Guy Kawasaki Video about the 10 things (actually 11) you need to know about the Art of Innovation.I was wondering if TypeMock was Innovative according to Guys Scale.
Well here goes:
1. Make Meaning not Money:TypeMock was started to help teams get to speed with TDD, and create better software.
2. […]
Generic Method Helpers
Per request of Paulo Morgado and others, we are implementing Generic API’s for TypeMock.TypeMock has supported Generic since .NET 2.0 Beta has been out, but it did not use Generics in the API’s. This is mainly to allow developers to use the same API’s for all .NET versions and to be able to upgrade their […]
Natural Mocks becoming more intelligent
Natural Mocks automatically mocks everything. This includes return values. So the following code:
using (RecordedExpecations recorder = RecorderManager.StartRecording())
{
DummyClass.DoWork();
recorder.Return(new SqlInt32(1));
}
Won’t work as expected because SqlInt32 is being mocked.
This has bugged me a few times and I simply created the return value outside the recorder.
SqlInt32 mockValue = new SqlInt32(1));
using (RecordedExpecations recorder = RecorderManager.StartRecording())
{
[…]
IoC and Average Programmers
Travis Illig from Corillian has pointed me to a great post from Jeff Atwood - Your Code: OOP or POO?
Travis Wrote:
Jeff Atwood argues that over-architecture and strict adherence to strong object-orientation (exactly what has to happen in “design for testability”) doesn’t work well when you start considering who’s going to have to maintain this stuff once […]
TypeMock is Freedom
Oren has answered my Quiz, by saying that
using(TextWriter writer = IoC.Resolve<IFileWriterFactory>().Create(filename))
writer.Write(text);
is easier to maintain! Well I cannot argue with that. Oren is one of a kind and I am sure that he can swallow these IoC containers and maintain them in his sleep. But would you have chosen this path if you […]
Design and Testability - YAGNI
After reading Roy’s Post and Oren’s Post who strongly side on Designing for testability I suddenly felt a De Ja Vu.
De Ja Vu
A few years ago, I was managing a project in a big company. One of the features that we where developing was a caching system. We needed the caching to boost performance on a […]