Coding

Refactor This Code

✦ Claude 🔥 87 puntuación tendencia 👁 0 usos
#refactoring#clean-code#maintainability
Categoría
Coding
Plataforma
Claude
Puntuación Tendencia
87/100
Total Usos
0
Plantilla de Prompt
Refactor the following code to improve readability, maintainability, and adherence to clean code principles. Current issues I suspect: [DESCRIBE]. Constraints: [MUST MAINTAIN API COMPATIBILITY / CANNOT CHANGE TESTS / etc.]

Code:
[PASTE CODE]

Provide: 1) Refactored version with clear diffs, 2) Explanation of each change and which principle it applies (DRY, SRP, etc.), 3) Any breaking changes or behavior differences, 4) Performance implications of the refactor, 5) What I should NOT refactor (things that look odd but exist for good reason). Show before/after side by side for the most impactful ...
Ver más prompts de Coding