Those you know me (or read my blog) know that I’m passionate (with a capital P) about software development, clean code and of course unit testing. And I’m happy to be given the opportunity to talk about these topics as part of The DevGeekWeek 2014 conference. The DevGeekWeek is a week of all things software … Continue reading DevGeekWeek 2014
Author: Dror Helper
What’s wrong with TDD
A while ago I was asked to talk about the problems of using TDD – being me I’ve decided to do the exact opposite, this session was names “what is wrong with TDD”.I felt that one of the major issues is that TDD looks weird, it’s counter-intuitive, and convincing developers to actually try it hard … Continue reading What’s wrong with TDD
Things I learnt reading C# specifications (2)
The story so far: After reading Jon Skeet’s excellent C# in Depth - again I’ve decide to try and actually read the C# language specification…You can read about in a previous post of mine:Things I learnt reading C# specifications (#1)And so as I continue to read the C# specifications along with the excellent comments by … Continue reading Things I learnt reading C# specifications (2)
What to do when FakeItEasy throws System.BadImageException
Today I had a weird problem at work. I’ve been working with a new team and they’ve been writing unit tests using FakeItEasy when they got a strange error message:System.BadImageFormatException: … The signature is incorrect.Now I’ve been using FakeItEasy for some time and I never once saw this strange behavior. Googling for the problem only … Continue reading What to do when FakeItEasy throws System.BadImageException
3 Windows Phone 8.1 features I’m already using
Two days ago I couldn’t take it anymore…There was a new and shiny (dev) release for my Windows Phone and I just had to install it. With trembling hands and a heavy heart I’ve installed Preview for Developers on my HTC 8x and dived right into the dreaded “download –> install –> reboot” cycle which … Continue reading 3 Windows Phone 8.1 features I’m already using
Faking a long running asynchronous call
A few days ago I needed to make sure that a specific method would only get called once no matter how many times it’s caller is invoked. The simplified code looked something like this:public async Task CallLongOperation(){ var result = await _client.LongWebCall(); if (result.Failed) { // log failure and exit } }I needed to make … Continue reading Faking a long running asynchronous call
Book review: Modern C++ Programming with Test-Driven Development
I’m always looking for ways to learn more about unit testing and TDD, I was elbow deep in a C++ project and I was looking to learn more about the tools & tricks of TDD in the unforgiving C++ world when this book was published and so I’ve started reading it. This book does … Continue reading Book review: Modern C++ Programming with Test-Driven Development
call_once for C#
One of the useful gems that made it into C++11 Standard Template Libraries (STD) is call_once, this nifty little method makes sure that specific code is called only once (duh) and it follows these 3 rules: Exactly one execution of exactly one of the functions (passed as f to the invocations in the group) is … Continue reading call_once for C#
Navigating your design
Let’s pretend you’re visiting a foreign country and you want to get somewhere interesting, in order to do so you need to drive to this new place, one where you’ve never been before. And so you get into your (rented) car and all you’ve got left to do is to ask yourself - how to … Continue reading Navigating your design
One assert to rule them all
What’s wrong with Assert.XQuick – what is the different between the following two lines:Assert.IsTrue(result == expected);Assert.AreEqual(expected, result);Essentially both Asserts check for the same condition, in practice once fail we get very different error messages:While this example is easy to understand – when facing less than trivial test it can be downright impossible to understand the … Continue reading One assert to rule them all
