3 ms·
I agree with your statement. I think where TDD may not work well is with legacy systems where people try to bolt on tests after the fact. I get the impression
by tmaly 3y ago
I agree with your statement.
I think where TDD may not work well is with legacy systems where people try to bolt on tests after the fact.
I get the impression from the article that this might be the case.
- taylodl 3y agoIf legacy systems weren't designed to be tested then it can very well be that they're very difficult to test. I've never seen anyone try to apply TDD to projects modifying those systems. Seems like it'd be an exercise in frustration!
- sprucebruce 3y agoThere's a great book by Michael Feathers on this very subject called "Working Effectively with Legacy Code". He takes a strong "test first" approach and talks about all the work you have to do when working on a system that isn't testable to change it safely with TDD.
- taylodl 3y agoThanks for the info! I'll check it out.