Uncle Bob's viewpoint considered harmful

Published on 2013-3-6

oof

I just felt a disturbance in the force, it's as if a thousand angry geeks just vented their nerdrage on Twitter because of a blog post by Uncle Bob and a response by @Nate Kohari.

Ouch.

So what kind of tests do you write Rob?

Meh

When do you write tests Rob?

Meh

Do you write tests Rob?

Meh

What

Ok, so I write tests - I usually can't be bothered having this conversation though, because years of having "TDD" forced down everybody's throats has left a bitter divide between developers who crave tests with every ounce of their being, and developers who really don't like tests and wading between them is opening myself up for another few hours of argument when I'd prefer to just be building stuff.

I'm currently wandering around though, and have the time for this sort of thing.

Classic "make no assumptions" TDD is dead, that ship has sailed - it is over. The stance it put forth however had the desired effect; which was to get everybody thinking about the code they wrote before they wrote it and write some tests around that code at some point in that code's lifetime so that iterating on that code in the future wouldn't be painful.

painful

That's the word. pain, let's say it again - pain, if it hurts - do something about it.

Listening to the pain is the only sane way to do software development, blindly listening to far-right viewpoints like Uncle Bobs will get you so far, and listening to far-left viewpoints which advocate throwing caution to the wind will probably lead you to failure. The idea that tests are a waste of time is a dangerous one if given time to grow in an echo chamber, but the idea that TDD is the absolute is just as dangerous.

Most of the time going with make no assumptions TDD is a waste of your client's money, and most of the time writing no tests at all will come back to bite you in the future - got it.

TDD as you mean it is a great academic exercise for your free time or weekends, TDD as you mean it is a great marketing term if you're one of those consultants who consult on TDD, and recruiters definitely love to see it on your CV but TDD is not usually how we build great software on time.

So what kind of tests do you write Rob?

Summary

There are two types of pragmatist in this world when it comes to testing, those that use pragmatism as an excuse not to do the right thing, and me.

Why not hire me?

I am available for emergency consults, workshops, training and short-term development work anywhere in Europe

C#, JavaScript, Clojure, RavenDB, NodeJS, Architecture review.. etc

Get in touch

blog comments powered by Disqus