More on TDD "so much code"

by percent20 6/16/2007 1:09:00 PM

As you may know I have been trying to learn Test Driven Development. One thing that has always bugged me is how much code you write just to test something. To me it seems like you should spend most of your time writing your application not writing tests.

Well believe it or not writing a lot of test code is great.  As I am working through examples I have realized the more tests you write the stronger your code is. Reason I say this is because say in 2 years when you come back to your code and add or change something and 20 tests break, that you will probably never notice, you know that hey there is a potential bug.  When you fix that hey you have good code because all your tests pass and you are testing every part of your app not just a small bit of it.

So in the end I realize now that writing a A LOT of test code is a good thing because it leads to a better final product.

Currently rated 4.0 by 2 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

TDD | Programming

Related posts

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

7/25/2008 12:50:59 AM

Powered by BlogEngine.NET 1.3.0.0
Theme by Mads Kristensen


My Flare

AddThis Feed Button

National Blog Posting Month

Eagle Scout

I'm Test Driven

[Reserved for MVP status I want to earn]

View Buddy Lindsey's profile on LinkedIn

Twitter



Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008

Sign in