Category Archives: code

Package a – javascript mocking framework

Me and Adlan Elmurzajev have just published https://npmjs.org/package/a – a javascript mocking framework for nodejs. It’s called a,  and is installed by npm . In addition to regular mocking, it can also stub require() – that means you can do proper unit … Continue reading

Posted in code, javascript | Tagged , , , , | Leave a comment

Tennis Kata with state transition tree

I have just published my specs of the Tennis Kata at github. I am using our inhouse infrastructure for unit testing. This means separating the Act from the Assert by having two different classes. We also use a inheritance in … Continue reading

Posted in code | Tagged , , | Leave a comment

Presenter meets Visitor

Here are the slides from my presentation at NNUG 30.09.2010. (First slide in Norwegian, rest in English) . It is from a real world experience when presenting heterogenous data in a grid. The example walkthrough uses GOF patterns and Single Responsibility … Continue reading

Posted in code | Tagged | 9 Comments