Loss of Trust

Today I came across something, I always knew to be possible, but never dared to think to happen. It's a story about an uncontrolled aggregation of economic power, of a chimera pretending to defend human rights on one side of the world and spurning them on the other. Some years ago, I experienced something in a friendship that made me understand, trustfulness is very hard to gain---and possibly lost in an instance of a second. It seems to me to be a bare lie if a company did collect payload data of private wireless networks in several countries and to speak of a simple mistake. And even if this was a mistake, it is one of the kind that made me loose confidence about this organization's credibility.

And it's true again: It took an instance of a second.

It's got a little bit out of our perception, but fortunately there are alternatives...

Posted at 00AM on 05/16/10 | 0 comments | Filed Under: | read on

What would you think about a MIMOCK?

The use of mocking in [TB]DD allways makes me feel slightly bad. I just don't like the idea of using an object in my tests, that is potentially pretending a behaviour, that the implementation of the 'real thing' might not provide. And: I suspect not being the only one... But the alternative, i.e. using the real dependency, has several disadvantages:

Tests tend to be slow:
Often a dependent service, object, etc., requires some amount of time to be set up in regular test runs. This is particular bad, if you're commited to a test driven approach. This might not be significant while executing only a few tests, but very annoying for a large test suite.
Tracing errors is more difficult:
Mocking provides a natural way of decoupling tests. If for example a large service framework is represented by a mock object, a test failure clearly is not to be found in the dependency! If the real service framework is used instead, any kind of unpredictable errors could occur due to e.g. networking problems or any other thing.
So far about the disadvantages of not using mocks. So why hesitate? Now my problem with this is the following: A mock object is just another artifact created by a human being--a code snippet. And we all know, programmers introduce between one and three bugs every thousand lines of code. Thus a mock setup may be wrong, just with any other piece of code. Now what could be a solution to this? This evening I had a vision of a new approacht to mocking, I thought could be named:



Mimocking

Mimocking is a creation out of the word mimic and mocking. The basic idea is:

A mimock should use the 'real thing', e.g. the real service our artifact under test depends on, if executed for the first time. It may then generate a derived mock out of the used interface and store it as a cached value object. This object could then be reused over and over again, as long as it is used in the same manner AND the dependent object, library or service (the real thing ;-) stays the same--hence is not updated.

Please post your feedback, since I think this to be a feasible approach. Why not make an open source project out of this...

Posted at 00AM on 02/21/10 | 0 comments | Filed Under: | read on

Is it about...

...the life of the fallen toad?

Is it about standing up again, tinkering your bones and jumping back into the mud?

Not really...

I'm back in the mud, finally. And I like it! So it's more about my sludgy thougths and experiences, anger sometimes, optimism and - most important - the beauty of life.