User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Software Developers' Lounge section within the Software Development category of DaniWeb, a massive community of 427,939 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,772 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Software Developers' Lounge advertiser: Programming Forums
Views: 213 | Replies: 2
Reply
Join Date: Mar 2007
Posts: 9
Reputation: Jusa is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Jusa Jusa is offline Offline
Newbie Poster

Handling Design Mistakes in TDD

  #1  
Jul 18th, 2008
I've thought about getting into test-driven development myself, but one thing I don't quite understand yet is what happens if I make a design mistake, like create a class and later on realize that it should be removed altogether. Removing it would mean all the tests I've written for that class would fail, right? Should I then just remove or modify the tests, too? Somehow it sounds like it shouldn't work this way, but maybe I'm missing something
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2004
Posts: 6,343
Reputation: Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of 
Rep Power: 29
Solved Threads: 462
Super Moderator
Narue's Avatar
Narue Narue is offline Offline
Expert Meanie

Re: Handling Design Mistakes in TDD

  #2  
Jul 18th, 2008
>Should I then just remove or modify the tests, too?
That makes sense. You should also modify the tests that rely on that class as well, which (depending on your level of coupling) could mean changes in other classes and other tests.
I'm a programmer. My attitude starts with arrogance, holds steady at condescension, and ends with hostility. Get used to it.
Reply With Quote  
Join Date: Mar 2007
Posts: 9
Reputation: Jusa is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Jusa Jusa is offline Offline
Newbie Poster

Re: Handling Design Mistakes in TDD

  #3  
Jul 18th, 2008
Ah, well, I guess I was thinking too complexly. At least TDD would make it easier in this case to spot dependencies and fix them away.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Software Developers' Lounge Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the Software Developers' Lounge Forum

All times are GMT -4. The time now is 6:37 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC