Coding
Simplify and clean up a complicated function
Make tangled code easier to read and change without altering behavior, with every edit explained.
No ratings yet
5fill-in fields0copies
Tag
6 prompts tagged Refactoring.
6 prompts
Make tangled code easier to read and change without altering behavior, with every edit explained.
Prepare for a major library or framework upgrade: breaking changes, code to update and a safe rollout order.
Port code to another language so it reads like native code, with notes on behavior differences and gotchas.
Plan a database, framework or infrastructure migration with phases, rollback points and verification at each step.
Understand code you inherited: a layered explanation from the big picture down to the tricky lines.
Plan a refactor as small, reversible steps that keep tests green, instead of a risky big rewrite.