Home » Tag Archives: TDD

Tag Archives: TDD

The Three Stages of Knowledge

In software development, knowing how to do things seems to fall into three stages. Ok… let’s pretend it does, it’s bound to be more complex than this, but this is a useful model, so bear with me. Facts – you’ve read how something works and how to get going with itLots of experience driven fixes – you’ve hit some problems, ...

Read More »

Need driven software development using Mocks

Excellent  paper on mocking framework by jmock author. This paper was written in 2004 that is 18 years ago but has many tips of building maintainable software system. In this post i will highlight key ideas from this paper but suggest you to read the paper to get big ideas behind mocking and programming practice.  Mock objects are extension of ...

Read More »

TDD Misbeliefs

While I was working with a previous article about Test-Driven Development (TDD) I read many blog posts and a few books on the subject and found out that I disagree with a few of them; even some that are pretty important. It seems that most software experts simply misunderstand how software development works. Maybe because they are not really programmers, ...

Read More »

The Essentials of Test-Driven Development

If you need software and you need it fast, test-driven development (TDD) may be the solution. With a focus on getting software from the computer to the market quickly, TDD is one of the most effective methods that top software development and software testing companies are using today. What Is Test-Driven Development? Agility and speed are the two concepts that ...

Read More »

Test-Driven Development – you are doing it wrong!

Test-Driven Development is one of those techniques that somehow is not as widely used as it should be. I know a lot of developers who can agree on the benefits it brings. Yet the same developers, when asked about practicing TDD, answer: “it does not work for me”.When I tried to understand the “why” behind this statement, they start to ...

Read More »

TDD in an Economically Sensible Way

On TDD, we’re often at two extremes: At the start of a project, we’re as idealistic as many TDD authors would have us do – writing tests for almost everything. Then, as deadlines near, we drop TDD altogether, and then deliver a product with ticking production-issue time bombs. The right attitude be somewhere in the middle: Apply TDD in an ...

Read More »

A canonical XML test

I recently did a few days of TDD training for a client. They asked me to help them test and refactor a class that created XML from an internal domain model. This gave me the opportunity to examine a bigger pattern. I wondered where the domain model came from. Looking through the code base, I found that the same or ...

Read More »

Forget about Clean Code, let’s embrace Compassionate Code

When your heroes start acting weird, you reexamine their influence on your life. I’ve long been learning, demonstrating and teaching clean code through TDD, patterns and so on. But when I look back, I am now worried that the ideas negatively influence my life and my work and that of others. Many who know me consider me an exceptionally skilled ...

Read More »

Should we always use TDD to design?

Can design emerge from TDD? Should we always use TDD to design software? Should we design upfront? How much design should we do and when? Those are common questions that often generate a lot of debate. People involved in those debates often have very different definitions of design and also the scope where it happens. It is difficult to have ...

Read More »