Coding

Refactor This Code

✦ Claude 🔥 87 Trend-Score 👁 0 Nutzungen
#refactoring#clean-code#maintainability
Kategorie
Coding
Plattform
Claude
Trend-Score
87/100
Gesamtnutzungen
0
Prompt-Vorlage
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 ...
Mehr Coding Prompts durchsuchen