This repository has been archived on 2026-11-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
dotfiles/agents/skills/tdd/refactoring.md
T
2026-07-26 11:45:12 +02:00

387 B

Refactor Candidates

After TDD cycle, look for:

  • Duplication → Extract function/class
  • Long methods → Break into private helpers (keep tests on public interface)
  • Shallow modules → Combine or deepen
  • Feature envy → Move logic to where data lives
  • Primitive obsession → Introduce value objects
  • Existing code the new code reveals as problematic