The contract has been signed, the training finished and all the company is ready to start using the best development practices known to man - unit testing, TDD, Clean code, pair programming you name it! But there’s just one problem preventing the change from happening...Or as the good doctor puts it:You can get so confused … Continue reading What are you waiting for???
Author: Dror Helper
How to fake a singleton in C++
When unit testing legacy code I find several (anti) patterns which prevent getting code under test. The most recurring pattern I see is the Singleton pattern – a useful pattern when not abused and overused.In the object oriented world Singleton’s are slightly better than their evil cousin – the static method. Unfortunately I’ve seen them … Continue reading How to fake a singleton in C++
Upcoming speaking engagements – User groups, meetups & AgileTD
It’s been a while since my last local appearance – too long in my opinion. Luckily I have a chance to remedy that:August 19th: I’ll be speaking at the IL .NET Developers user group (IDNDUG) about Navigating the TDD alphabet soup. I’ll be speaking about TDD/BDD/ATDD, their origins, how (and when) to use them and … Continue reading Upcoming speaking engagements – User groups, meetups & AgileTD
Using NUnit and FakeItEasy to create fake objects automatically for your tests
From time to time I get to teach and mentor Java developers on the fine art of unit testing. There are many similarities when unit testing in Java and .NET but more interesting are the differences between the two. Faking objects in Java using MockitoOne of the well-used Java Isolation (Mocking) frameworks is called Mockito … Continue reading Using NUnit and FakeItEasy to create fake objects automatically for your tests
Unit and integration are ambiguous names for tests–and that’s ok
In my not-so-distant past I needed to write a component which would control an air conditioning unit.My application needed to send commands to the external device (on, off, set temperature) and read information from it (room temperature, humidity etc.)And so I came with the following:It’s a bit simplistic but the idea was that the client … Continue reading Unit and integration are ambiguous names for tests–and that’s ok
Broken windows and software development
In 1969 a car with no license plates was parked with it’s hood up in the Bronx. Within minutes it was vandalized and stripped. That car was part of an experiment to test a theory called “broken windows”.The Broken windows theoryThe original broken windows theory was introduced in 1982:Consider a building with a few broken … Continue reading Broken windows and software development
TDD is like riding a bicycle
From time to time I get to teach unit testing and TDD to developers. And every single time I get to learn something new.During such class we got to the part where I talk about TDD. When I’ve explained about writing tests before code as a design activity - nobody objected. When we did step … Continue reading TDD is like riding a bicycle
AssertHelper V1 released
Exactly one year and four months passed since my first try at fixing the state of asserts in NUnit. You can read all about it in my post – One assert to rule them all.My intent was to create one assert that would automatically choose the right way to check test result (I didn’t invet … Continue reading AssertHelper V1 released
I’m a software developer – not a lawyer
A long time ago not that far away I’ve been hired by Omni-Corp to work on the new and shiny product. We had talent, budget and cool technology on our side, and that project was going to crash and burn (and ultimately cancelled) in less than a year.Nobody’s perfect - we had our share of problems, some … Continue reading I’m a software developer – not a lawyer
Electronics 101 – Getting started with Arduino
These days everybody talks about IoT. Connecting your toaster to the internet has become a nationwide priority. Finally the barrier to entry to the hobbyist/home electronics have fallen and anyone can hack an hardware solution using cheap and simple components.And putting together a simple circuit controlled by Arduino/Raspberry Pi/whatever is easy, it’s just a matter … Continue reading Electronics 101 – Getting started with Arduino

