How I got into TDD

12/01/07

Permalink 10:40:24 am, by truewill Email , 188 words, 80 views   English (US)
Categories: Testing, Agile, Quality, Books

How I got into TDD

Three things I hate: bugs, debugging, and manual testing.

Years ago, I built a reputation for writing (relatively) bug-free code. My methodology was:

  1. Write a procedure
  2. Run the code in the debugger and trace through the code paths
  3. Build up a library of tested procedures

This worked. The problem was that changing a tested procedure required repeating the manual tests. I hated maintenance, and would argue against feature requests that affected the existing design. Unfortunately, maintenance and change requests are a large percentage of our jobs.

At a Borland Convention one year, I went to a seminar on reducing bugs in Delphi applications or some such. (I don’t remember who presented it; an Australian fellow, I think.) The speaker spent some time on Unit Testing and test frameworks; I was intrigued.

Eventually, I found that automated tests kept me out of the debugger. I no longer hated or feared changes.

Reading Beck (XP) and Fowler (Refactoring) taught me that complex code is hard to change and prone to bugs, while simple code is easy to change and debug.

I still write stable code. I just enjoy it more.

Comments, Pingbacks:

No Comments/Pingbacks for this post yet...

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))
The name truewill is composed of two other words. What is the SECOND word?

Development Central

Development Central is the blog of Bill Sorensen, a professional software developer. Much of this will relate to C#, .NET, and OOP in general.

Disclaimer
These postings are provided "AS IS" with no warranties and confer no rights.

Search

Categories

Linkblog

b2evolution

contributors

XML Feeds

What is RSS?

Who's Online?

  • Guest Users: 1

powered by b2evolution free blog software