Coding

Refactor This Code

✦ Claude 🔥 87 punteggio tendenza 👁 0 utilizzi
#refactoring#clean-code#maintainability
Categoria
Coding
Piattaforma
Claude
Punteggio Tendenza
87/100
Utilizzi Totali
0
Modello di 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 ...
Sfoglia altri prompt Coding