The Challenge of Refactoring
Refactoring often touches multiple files—changing a function signature usually requires updating every file that calls it.
Strategy: Analyze First
Before asking for changes, ask Claude to identify dependencies:
Learning Objectives
Lesson Outline
Refactoring often touches multiple files—changing a function signature usually requires updating every file that calls it.
Before asking for changes, ask Claude to identify dependencies:
Once the scope is clear, issue a comprehensive instruction:
Claude will plan the edits and apply them sequentially.