Tdd And Programming By Difference
Legacy CodeWorking Effectively with Legacy Code
Add features to tested code using TDD or Programming by Difference. Use whenever a developer is adding a feature to a class that already has tests (or can be brought under test) — 'how do I add this feature', 'test-driven development for legacy', 'red green refactor', 'TDD cycle', 'add behavior with tests', 'inheritance to add feature', 'programming by difference', 'subclass to add behavior', 'Liskov substitution', 'LSP violation'. Triggers for 'I just got this class under test, now I need to add X'.
Install
1. Add marketplace
› /plugin marketplace add bookforge-ai/bookforge-skills
2. Install plugin
› /plugin install working-effectively-with-legacy-code@bookforge-skills
3. Use the skill
› /tdd-and-programming-by-difference
CC-BY-SA · Open sourceGitHub
What You'll Need
ReadEditBashGrep (optional)
Source Book

Working Effectively with Legacy Code
Michael C. Feathers
View on ClawhHub