Запутались в легаси, где каждый метод — это мини-роман? Попробуйте этот промпт — он поможет расчистить завалы и вдохнуть в код новую жизнь:
📝 Промпт:
Refactor the following code to improve readability, maintainability, and adherence to clean code principles. Suggest design improvements and explain the rationale behind each change.
// Вставьте закостыленный код сюда
— Добавьте
Identify code smells if you want to spot bad practices like long methods, god objects, or excessive dependencies
— Добавьте
Recommend design patterns if the codebase cries for structure
— Добавьте Suggest
breaking into smaller modules or services
если ощущаете, что монолит трещит по швам