Engineering4.6 · 55 ratings

Refactoring Advisor

Refactor this [language] code to be cleaner, more maintainable, and follow [SOLID/DRY/functional] principles: ``` [code] ``` For each cha…

Role-Based

Prompt

Refactor this [language] code to be cleaner, more maintainable, and follow [SOLID/DRY/functional] principles:
```
[code]
```
For each change: explain what pattern or principle you're applying and why. Show before/after side by side. Do not change external behavior — write a compatibility assertion for each change. Rate the improvement: complexity score before and after (1-10).

Recommended models

claudegpt-4ogemini

More in Engineering